Package org.jmol.multitouch.sparshui
Class SinglePointGesture
java.lang.Object
org.jmol.multitouch.sparshui.SinglePointGesture
- All Implemented Interfaces:
com.sparshui.gestures.Gesture
SINGLE_POINT_GESTURE
only passes single-touch gestures.
allows detection of click and double-click
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.sparshui.server.TouchPointprivate intprivate intprivate intprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckClick(com.sparshui.server.TouchPoint tpNew, List<com.sparshui.common.Event> retEvents, boolean isDeath) intGet the integer value of this gesture type.getName()Get the name of this gesture.List<com.sparshui.common.Event>processChange(List<com.sparshui.server.TouchPoint> touchPoints, com.sparshui.server.TouchPoint changedTouchPoint) incorporates double-click gesture
-
Field Details
-
MAXIMUM_CLICK_TIME
private static final long MAXIMUM_CLICK_TIME- See Also:
-
_nCurrent
private int _nCurrent -
_nMoves
private int _nMoves -
_myId
private int _myId -
_birth
private com.sparshui.server.TouchPoint _birth
-
-
Constructor Details
-
SinglePointGesture
public SinglePointGesture()
-
-
Method Details
-
getName
Description copied from interface:com.sparshui.gestures.GestureGet the name of this gesture.- Specified by:
getNamein interfacecom.sparshui.gestures.Gesture- Returns:
- The name of this gesture.
-
getGestureType
public int getGestureType()Description copied from interface:com.sparshui.gestures.GestureGet the integer value of this gesture type. Gesture values are defined in GestureType.java.- Specified by:
getGestureTypein interfacecom.sparshui.gestures.Gesture- Returns:
- The gesture type.
-
processChange
public List<com.sparshui.common.Event> processChange(List<com.sparshui.server.TouchPoint> touchPoints, com.sparshui.server.TouchPoint changedTouchPoint) incorporates double-click gesture- Specified by:
processChangein interfacecom.sparshui.gestures.Gesture- Parameters:
touchPoints-changedTouchPoint-- Returns:
- Vector of Events
-
checkClick
private boolean checkClick(com.sparshui.server.TouchPoint tpNew, List<com.sparshui.common.Event> retEvents, boolean isDeath)
-