Package tripleplay.gesture
Class GestureNode
java.lang.Object
tripleplay.gesture.GestureNode
A node in the history of the current user gesture. Events that spawn a new node:
* User touches a finger to the display (START)
* User removes a finger from the display (END)
* User moves far enough to trigger a drag in a new direction (MOVE)
* User stops dragging long enough to be considered "still" (PAUSE)
* User cancels a touch (CANCEL)
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal pythagoras.f.Point
The local location of the touch event in this node.final double
A timestamp for this node.final Touch.Event
The touch event for this node.final GestureNode.Type
The state change that caused the registration of this node. -
Constructor Summary
ConstructorDescriptionGestureNode
(double timestamp, GestureNode.Type type, Touch.Event touch, pythagoras.f.Point location) GestureNode
(double timestamp, GestureNode.Type type, Touch.Interaction iact) -
Method Summary
-
Field Details
-
timestamp
public final double timestampA timestamp for this node. -
type
The state change that caused the registration of this node. -
touch
The touch event for this node. -
location
public final pythagoras.f.Point locationThe local location of the touch event in this node.
-
-
Constructor Details
-
GestureNode
-
GestureNode
public GestureNode(double timestamp, GestureNode.Type type, Touch.Event touch, pythagoras.f.Point location)
-