Package org.jmol.multitouch.sparshui
Class SinglePointGesture
java.lang.Object
org.jmol.multitouch.sparshui.SinglePointGesture
- All Implemented Interfaces:
Gesture
SINGLE_POINT_GESTURE
only passes single-touch gestures.
allows detection of click and double-click
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the integer value of this gesture type.getName()
Get the name of this gesture.processChange
(List<TouchPoint> touchPoints, TouchPoint changedTouchPoint) incorporates double-click gesture
-
Constructor Details
-
SinglePointGesture
public SinglePointGesture()
-
-
Method Details
-
getName
Description copied from interface:Gesture
Get the name of this gesture. -
getGestureType
public int getGestureType()Description copied from interface:Gesture
Get the integer value of this gesture type. Gesture values are defined in GestureType.java.- Specified by:
getGestureType
in interfaceGesture
- Returns:
- The gesture type.
-
processChange
incorporates double-click gesture- Specified by:
processChange
in interfaceGesture
- Parameters:
touchPoints
-changedTouchPoint
-- Returns:
- Vector of Events
-