|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GestureEvent
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 |
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 |
---|
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
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.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.int getStartX()
Query for the gestures horizontal start location.
This method can be called for all gesture events.
int getStartY()
Query for the gestures vertical start location.
This method can be called for all gesture events.
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.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.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.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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |