rebuild.ui.component
Class GestureField.Gesture

java.lang.Object
  extended by rebuild.ui.component.GestureField.Gesture
Enclosing class:
GestureField

public final class GestureField.Gesture
extends java.lang.Object

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

EVENT_CLICK_REPEAT

public static final int EVENT_CLICK_REPEAT
Click and pause at a specific point on the touch screen for more than 500 milliseconds. A new consecutive EVENT_CLICK_REPEAT event is generated every 500 milliseconds until the user moves or removes touch from the touch screen.


EVENT_DOUBLE_TAP

public static final int EVENT_DOUBLE_TAP
Two consecutive quick touch and release gesture on the touch screen. EVENT_DOUBLE_TAP events are independent of EVENT_TAP event, i.e. applications will receive a EVENT_DOUBLE_TAP event after a EVENT_TAP.


EVENT_HOVER

public static final 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). A new consecutive HOVER event is generated at this interval in milliseconds until the user moves or removes touch from the touch screen.


EVENT_SWIPE

public static final int EVENT_SWIPE
Quick motion gesture across the touch screen.


EVENT_TAP

public static final int EVENT_TAP
Quick touch and release gesture on the touch screen.


EVENT_PINCH

public static final int EVENT_PINCH
A pinch event where two fingers are used to change the size, position, or rotation of something on screen.

See Also:
Constant Field Values

TYPE_CLICK_REPEAT_COUNT

public static final int TYPE_CLICK_REPEAT_COUNT
Retrieves the number of 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.


TYPE_HOVER_COUNT

public static final int TYPE_HOVER_COUNT
Retrieves the number of 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.


TYPE_TAP_COUNT

public static final 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.


TYPE_SWIPE_ANGLE

public static final int TYPE_SWIPE_ANGLE
Retrieves the angle (in degrees) associated with a swipe gesture relative to the device's current upward direction.


TYPE_SWIPE_DIRECTION

public static final int TYPE_SWIPE_DIRECTION
Retrieves the relative cardinal direction associated with a swipe gesture based on the device's upward direction.

See Also:
SWIPE_NORTH, SWIPE_EAST, SWIPE_SOUTH, SWIPE_WEST

TYPE_SWIPE_MAGNITUDE

public static final int TYPE_SWIPE_MAGNITUDE
Get the swipe magnitude (in pixels) of the swipe.


TYPE_PINCH_TRANSLATE_X

public static final int TYPE_PINCH_TRANSLATE_X
Delta translation of pinch point on the X coordinate in Fixed32 format.

See Also:
Constant Field Values

TYPE_PINCH_TRANSLATE_Y

public static final int TYPE_PINCH_TRANSLATE_Y
Delta translation of pinch point on the Y coordinate in Fixed32 format.

See Also:
Constant Field Values

TYPE_PINCH_ROTATE

public static final int TYPE_PINCH_ROTATE
Delta rotation in Fixed32 radians.

See Also:
Constant Field Values

TYPE_PINCH_SCALE_X

public static final int TYPE_PINCH_SCALE_X
Delta scale in the X plane in Fixed32 format.

See Also:
Constant Field Values

TYPE_PINCH_SCALE_Y

public static final int TYPE_PINCH_SCALE_Y
Delta scale in the Y plane in Fixed32 format.

See Also:
Constant Field Values

SWIPE_EAST

public static final int SWIPE_EAST
Gesture direction that is equivalent to 180 degrees +/- 45 degrees relative to the device's current upward direction. Can be bitwise ORed with other cardinal directions.


SWIPE_NORTH

public static final int SWIPE_NORTH
Gesture direction that is equivalent to 90 degrees +/- 45 degrees relative to the device's current upward direction. Can be bitwise ORed with other cardinal directions.


SWIPE_SOUTH

public static final int SWIPE_SOUTH
Gesture direction that is equivalent to 270 degrees +/- 45 degrees relative to the device's current upward direction. Can be bitwise ORed with other cardinal directions.


SWIPE_WEST

public static final int SWIPE_WEST
Gesture direction that is equivalent to 180 degrees +/- 45 degrees relative to the device's current upward direction. Can be bitwise ORed with other cardinal directions.

Method Detail

getEvent

public int getEvent()
Get what type of gesture this Gesture is.


getGestureValue

public int getGestureValue(int valueType)
Get a specific value from this Gesture.

Parameters:
valueType - The value type to get.
Returns:
The resulting value.
Throws:
java.lang.IllegalArgumentException - If valueType is not a valid type for this Gesture.