|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.views.gesturelist.MouseGesturesRecognizer
public final class MouseGesturesRecognizer
Responsible for processing mouse events and recognition of mouse movements. Thread unsafe, should be called from the UI thread only.
Nested Class Summary | |
---|---|
static class |
MouseGesturesRecognizer.GestureEnum
The gesture event type. |
Field Summary | |
---|---|
static char |
DOWN_MOVE
String representation of down movement. |
int |
gridSize
Grid size. |
static char |
LEFT_MOVE
String representation of left movement. |
static char |
RIGHT_MOVE
String representation of right movement. |
static char |
UP_MOVE
String representation of up movement. |
Constructor Summary | |
---|---|
MouseGesturesRecognizer()
|
Method Summary | |
---|---|
String |
getGesture()
Returns string representation of mouse gesture. |
char |
getLastGesture()
Returns last gesture. |
boolean |
isGestureRecognized()
Indicates whether any movements were recognized. |
MouseGesturesRecognizer.GestureEnum |
processMouseEvent(MotionEvent mouseEvent)
Processes mouse event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char LEFT_MOVE
public static final char RIGHT_MOVE
public static final char UP_MOVE
public static final char DOWN_MOVE
public int gridSize
Constructor Detail |
---|
public MouseGesturesRecognizer()
Method Detail |
---|
public MouseGesturesRecognizer.GestureEnum processMouseEvent(MotionEvent mouseEvent)
mouseEvent
- MouseEvent
null
if no new gesture
occured as a result of the event.public String getGesture()
public boolean isGestureRecognized()
true
if there are recognized movements;
false
otherwisepublic char getLastGesture()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |