|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GestureEvent interface class is used by an application to receive gesture recognition events from the platform.
The API imposes the restriction that the gesture event data is only
valid during the call to GestureListener.gestureAction(java.lang.Object, com.nokia.mid.ui.gestures.GestureInteractiveZone, com.nokia.mid.ui.gestures.GestureEvent)
.
Method Summary | |
int |
getDragDistanceX()
Query for the Drag & Drop gesture events movement in horizontal direction since last drag gesture. |
int |
getDragDistanceY()
Query for the Drag & Drop gesture events movement in vertical direction since last drag gesture. |
float |
getFlickDirection()
Query for the Flick gesture events direction. |
int |
getFlickSpeed()
Query for the Flick gesture events speed in actual flick direction. |
int |
getFlickSpeedX()
Query for the Flick gesture events speed in horizontal direction. |
int |
getFlickSpeedY()
Query for the Flick gesture events speed in vertical direction. |
int |
getPinchCenterChangeX()
Query for the Pinch gesture events change in the center position between the fingers in horizontal direction since the last pinch gesture. |
int |
getPinchCenterChangeY()
Query for the Pinch gesture events change in the center position between the fingers in vertical direction since the last pinch gesture. |
int |
getPinchCenterX()
Query for the Pinch gesture events current center position between the fingers in horizontal direction. |
int |
getPinchCenterY()
Query for the Pinch gesture events current center position between the fingers in vertical direction. |
int |
getPinchDistanceChange()
Query for the Pinch gesture events change in the distance between the fingers since the last pinch gesture. |
int |
getPinchDistanceCurrent()
Query for the Pinch gesture events current distance between the fingers. |
int |
getPinchDistanceStarting()
Gets the distance (in pixels) between the fingers when the pinch gesture started. |
int |
getStartX()
Query for the gestures horizontal start location. |
int |
getStartY()
Query for the gestures vertical start location. |
int |
getType()
Query for the actual gesture event that has occurred. |
Method Detail |
public int getType()
Query for the actual gesture event that has occurred.
Gesture Event can be one of:
GestureInteractiveZone.GESTURE_TAP
GestureInteractiveZone.GESTURE_LONG_PRESS
GestureInteractiveZone.GESTURE_LONG_PRESS_REPEATED
GestureInteractiveZone.GESTURE_DRAG
GestureInteractiveZone.GESTURE_DROP
GestureInteractiveZone.GESTURE_FLICK
GestureInteractiveZone.GESTURE_PINCH
GestureInteractiveZone.GESTURE_RECOGNITION_START
GestureInteractiveZone.GESTURE_RECOGNITION_END
public int getDragDistanceX()
Query for the Drag & Drop gesture events movement in horizontal direction since last drag gesture.
This method can only be called for drag GestureInteractiveZone.GESTURE_DRAG
and drop GestureInteractiveZone.GESTURE_DROP
gesture events.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getDragDistanceY()
Query for the Drag & Drop gesture events movement in vertical direction since last drag gesture.
This method can only be called for drag GestureInteractiveZone.GESTURE_DRAG
and drop GestureInteractiveZone.GESTURE_DROP
gesture events.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getStartX()
Query for the gestures horizontal start location.
This method can be called for all gesture events.
public int getStartY()
Query for the gestures vertical start location.
This method can be called for all gesture events.
public float getFlickDirection()
Query for the Flick gesture events direction.
This method can only be called for the flick GestureInteractiveZone.GESTURE_FLICK
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getFlickSpeed()
Query for the Flick gesture events speed in actual flick direction.
This method can only be called for the flick GestureInteractiveZone.GESTURE_FLICK
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getFlickSpeedX()
Query for the Flick gesture events speed in horizontal direction.
This method can only be called for the flick GestureInteractiveZone.GESTURE_FLICK
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getFlickSpeedY()
Query for the Flick gesture events speed in vertical direction.
This method can only be called for the flick GestureInteractiveZone.GESTURE_FLICK
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchDistanceStarting()
Gets the distance (in pixels) between the fingers when the pinch gesture started.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchDistanceCurrent()
Query for the Pinch gesture events current distance between the fingers.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchDistanceChange()
Query for the Pinch gesture events change in the distance between the fingers since the last pinch gesture.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchCenterX()
Query for the Pinch gesture events current center position between the fingers in horizontal direction.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchCenterY()
Query for the Pinch gesture events current center position between the fingers in vertical direction.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchCenterChangeX()
Query for the Pinch gesture events change in the center position between the fingers in horizontal direction since the last pinch gesture.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.public int getPinchCenterChangeY()
Query for the Pinch gesture events change in the center position between the fingers in vertical direction since the last pinch gesture.
This method can only be called for the pinch GestureInteractiveZone.GESTURE_PINCH
gesture event.
java.lang.IllegalStateException
- if requested data invalid for gesture event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |