|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.ui.component.GestureField.Gesture
public final class GestureField.Gesture
A gesture that was generated by a GestureField
.
Field Summary | |
---|---|
static int |
EVENT_CLICK_REPEAT
Click and pause at a specific point on the touch screen for more than 500 milliseconds. |
static int |
EVENT_DOUBLE_TAP
Two consecutive quick touch and release gesture on the touch screen. |
static int |
EVENT_HOVER
Touch and pause at a specific point on the touch screen for more than the user-defined number of milliseconds (configurable setting found in Screen/Keyboard Options). |
static int |
EVENT_PINCH
A pinch event where two fingers are used to change the size, position, or rotation of something on screen. |
static int |
EVENT_SWIPE
Quick motion gesture across the touch screen. |
static int |
EVENT_TAP
Quick touch and release gesture on the touch screen. |
static int |
SWIPE_EAST
Gesture direction that is equivalent to 180 degrees +/- 45 degrees relative to the device's current upward direction. |
static int |
SWIPE_NORTH
Gesture direction that is equivalent to 90 degrees +/- 45 degrees relative to the device's current upward direction. |
static int |
SWIPE_SOUTH
Gesture direction that is equivalent to 270 degrees +/- 45 degrees relative to the device's current upward direction. |
static int |
SWIPE_WEST
Gesture direction that is equivalent to 180 degrees +/- 45 degrees relative to the device's current upward direction. |
static int |
TYPE_CLICK_REPEAT_COUNT
Retrieves the number of EVENT_CLICK_REPEAT events generated before the user moves or releases from the touch screen. |
static int |
TYPE_HOVER_COUNT
Retrieves the number of EVENT_HOVER events generated before the user moves or removes touch from the touch screen. |
static int |
TYPE_PINCH_ROTATE
Delta rotation in Fixed32 radians. |
static int |
TYPE_PINCH_SCALE_X
Delta scale in the X plane in Fixed32 format. |
static int |
TYPE_PINCH_SCALE_Y
Delta scale in the Y plane in Fixed32 format. |
static int |
TYPE_PINCH_TRANSLATE_X
Delta translation of pinch point on the X coordinate in Fixed32 format. |
static int |
TYPE_PINCH_TRANSLATE_Y
Delta translation of pinch point on the Y coordinate in Fixed32 format. |
static int |
TYPE_SWIPE_ANGLE
Retrieves the angle (in degrees) associated with a swipe gesture relative to the device's current upward direction. |
static int |
TYPE_SWIPE_DIRECTION
Retrieves the relative cardinal direction associated with a swipe gesture based on the device's upward direction. |
static int |
TYPE_SWIPE_MAGNITUDE
Get the swipe magnitude (in pixels) of the swipe. |
static int |
TYPE_TAP_COUNT
Retrieves the consecutive number of EVENT_TAP events generated before the user moves or maintains touch for greater than 150 milliseconds. |
Method Summary | |
---|---|
int |
getEvent()
Get what type of gesture this Gesture is. |
int |
getGestureValue(int valueType)
Get a specific value from this Gesture. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EVENT_CLICK_REPEAT
public static final int EVENT_DOUBLE_TAP
EVENT_TAP
event, i.e.
applications will receive a EVENT_DOUBLE_TAP event after a EVENT_TAP
.
public static final int EVENT_HOVER
public static final int EVENT_SWIPE
public static final int EVENT_TAP
public static final int EVENT_PINCH
public static final int TYPE_CLICK_REPEAT_COUNT
EVENT_CLICK_REPEAT
events generated before the user moves or releases from the touch screen. A new consecutive
EVENT_CLICK_REPEAT
event is generated every 500 milliseconds.
public static final int TYPE_HOVER_COUNT
EVENT_HOVER
events generated before the user moves or removes touch from the touch screen. A new consecutive
EVENT_HOVER
event is generated every 100 milliseconds.
public static final int TYPE_TAP_COUNT
EVENT_TAP
events generated before the user moves or maintains touch for greater than 150 milliseconds.
public static final int TYPE_SWIPE_ANGLE
public static final int TYPE_SWIPE_DIRECTION
SWIPE_NORTH
,
SWIPE_EAST
,
SWIPE_SOUTH
,
SWIPE_WEST
public static final int TYPE_SWIPE_MAGNITUDE
public static final int TYPE_PINCH_TRANSLATE_X
public static final int TYPE_PINCH_TRANSLATE_Y
public static final int TYPE_PINCH_ROTATE
public static final int TYPE_PINCH_SCALE_X
public static final int TYPE_PINCH_SCALE_Y
public static final int SWIPE_EAST
public static final int SWIPE_NORTH
public static final int SWIPE_SOUTH
public static final int SWIPE_WEST
Method Detail |
---|
public int getEvent()
public int getGestureValue(int valueType)
valueType
- The value type to get.
java.lang.IllegalArgumentException
- If valueType is not a valid type for this Gesture.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |