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.TouchPoint
private int
private int
private int
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkClick
(com.sparshui.server.TouchPoint tpNew, List<com.sparshui.common.Event> retEvents, boolean isDeath) int
Get 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.Gesture
Get the name of this gesture.- Specified by:
getName
in interfacecom.sparshui.gestures.Gesture
- Returns:
- The name of this gesture.
-
getGestureType
public int getGestureType()Description copied from interface:com.sparshui.gestures.Gesture
Get the integer value of this gesture type. Gesture values are defined in GestureType.java.- Specified by:
getGestureType
in 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:
processChange
in 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)
-