public class SinglePointGesture
extends java.lang.Object
implements com.sparshui.gestures.Gesture
Modifier and Type | Field and Description |
---|---|
private com.sparshui.server.TouchPoint |
_birth |
private int |
_myId |
private int |
_nCurrent |
private int |
_nMoves |
private static long |
MAXIMUM_CLICK_TIME |
Constructor and Description |
---|
SinglePointGesture() |
Modifier and Type | Method and Description |
---|---|
private boolean |
checkClick(com.sparshui.server.TouchPoint tpNew,
java.util.List<com.sparshui.common.Event> retEvents,
boolean isDeath) |
int |
getGestureType()
Get the integer value of this gesture type.
|
java.lang.String |
getName()
Get the name of this gesture.
|
java.util.List<com.sparshui.common.Event> |
processChange(java.util.List<com.sparshui.server.TouchPoint> touchPoints,
com.sparshui.server.TouchPoint changedTouchPoint)
incorporates double-click gesture
|
private static final long MAXIMUM_CLICK_TIME
private int _nCurrent
private int _nMoves
private int _myId
private com.sparshui.server.TouchPoint _birth
public java.lang.String getName()
com.sparshui.gestures.Gesture
getName
in interface com.sparshui.gestures.Gesture
public int getGestureType()
com.sparshui.gestures.Gesture
getGestureType
in interface com.sparshui.gestures.Gesture
public java.util.List<com.sparshui.common.Event> processChange(java.util.List<com.sparshui.server.TouchPoint> touchPoints, com.sparshui.server.TouchPoint changedTouchPoint)
processChange
in interface com.sparshui.gestures.Gesture
touchPoints
- changedTouchPoint
- private boolean checkClick(com.sparshui.server.TouchPoint tpNew, java.util.List<com.sparshui.common.Event> retEvents, boolean isDeath)