|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nokia.mid.ui.TactileFeedback
public class TactileFeedback
Field Summary | |
---|---|
static int |
FEEDBACK_STYLE_BASIC
Constant for specifying basic tactile feedback style. |
static int |
FEEDBACK_STYLE_SENSITIVE
Constant for specifying sensitive tactile feedback style. |
Constructor Summary | |
---|---|
TactileFeedback()
Constructs tactile feedback engine object. |
Method Summary | |
---|---|
void |
directFeedback(int style)
Triggers direct tactile feedback of the specified style. |
boolean |
isTouchFeedbackSupported()
Queries the device if it supports tactile feedback. |
void |
moveFeedbackAreaToFirstPriority(java.lang.Object uiObject,
int id)
Moves the specified tactile feedback area to first priority. |
void |
registerFeedbackArea(java.lang.Object uiObject,
int id,
int x,
int y,
int width,
int height,
int style)
Registers area within a UI component for tactile feedback. |
void |
removeFeedbackForComponent(java.lang.Object uiObject)
Removes all tactile feedback for a UI component. |
void |
unregisterFeedbackArea(java.lang.Object uiObject,
int id)
Unregisters tactile feedback area within a UI component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FEEDBACK_STYLE_BASIC
public static final int FEEDBACK_STYLE_SENSITIVE
Constructor Detail |
---|
public TactileFeedback()
Method Detail |
---|
public void directFeedback(int style) throws java.lang.IllegalArgumentException
style
- The style of the direct feedback. Use predefined values
FEEDBACK_STYLE_BASIC, FEEDBACK_STYLE_SENSITIVE. Actual style
behavior is set through device settings.
java.lang.IllegalArgumentException
- if the style parameter
has invalid type.public boolean isTouchFeedbackSupported()
public void registerFeedbackArea(java.lang.Object uiObject, int id, int x, int y, int width, int height, int style) throws java.lang.IllegalArgumentException
uiObject
- The UI component for tactile feedback registration. Valid object
types are: javax.microedition.lcdui.Canvas,
javax.microedition.lcdui.CustomItem, org.eclipse.swt.widgets.Control.id
- of the new tactile feedback area to be registered.
Id's are used to identify particular tactile feedback area
within one UI component. Id's do not need to be consecutive
numbers.x
- x-coordinate of the top-left corner of tactile feedback
rectangle to register.y
- y-coordinate of the top-left corner of tactile feedback
rectangle to register.width
- of tactile feedback rectangle to register.height
- of tactile feedback rectangle to register.style
- of the feedback for specified area. Use predefined
values FEEDBACK_STYLE_BASIC, FEEDBACK_STYLE_SENSITIVE.
Actual style behaviour is defined through device settings.
java.lang.IllegalArgumentException
- if the uiObject parameter
has invalid type.
java.lang.IllegalArgumentException
- if the style parameter
has invalid type.public void unregisterFeedbackArea(java.lang.Object uiObject, int id) throws java.lang.IllegalArgumentException
uiObject
- The UI component for tactile feedback area de-registration.
Valid object types are: javax.microedition.lcdui.Canvas,
javax.microedition.lcdui.CustomItem, org.eclipse.swt.widgets.Control.id
- of the tactile feedback area to be unregistered. Id's are
used to identify particular tactile feedback area within one
UI component. If given id was not registered by registerFeedbackArea
then the call has no effect.
java.lang.IllegalArgumentException
- if the uiObject parameter
has invalid type.public void removeFeedbackForComponent(java.lang.Object uiObject)
uiObject
- The UI component for tactile feedback area de-registration.
Valid object types are: javax.microedition.lcdui.Canvas,
javax.microedition.lcdui.CustomItem, org.eclipse.swt.widgets.Control.
java.lang.IllegalArgumentException
- if the uiObject parameter
has invalid type.public void moveFeedbackAreaToFirstPriority(java.lang.Object uiObject, int id)
uiObject
- The UI component for tactile feedback area de-registration.
Valid object types are: javax.microedition.lcdui.Canvas,
javax.microedition.lcdui.CustomItem, org.eclipse.swt.widgets.Control.id
- of the tactile feedback area to be unregistered. Id's
are used to identify particular tactile feedback area within one
UI component. If given id was not registered by registerFeedbackArea
then the call has no effect.
java.lang.IllegalArgumentException
- if the uiObject parameter
has invalid type.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |