public class GestureAnalyzer
extends java.lang.Object
Constructor and Description |
---|
GestureAnalyzer(ComponentMap cMap) |
Modifier and Type | Method and Description |
---|---|
void |
add(Point2 p)
Called when a new finger is in contact with the surface
|
void |
analyze(MTComponent c,
BlobQueue b,
java.lang.String state,
int id,
Point2 p)
Runs the gesture analysis
|
void |
remove(Point2 p)
Called when a finger is removed from the surface
|
void |
update(Point2 p)
Called when a finger updated its position (finger moved)
|
public GestureAnalyzer(ComponentMap cMap)
public void add(Point2 p)
p
- Current position of the finger that touched the surfacepublic void update(Point2 p)
p
- current finger positionpublic void remove(Point2 p)
p
- finger position before being removed from the surfacepublic void analyze(MTComponent c, BlobQueue b, java.lang.String state, int id, Point2 p)
c
- The component on which the event occurredb
- The Blobqueue associated to the component cstate
- State is either "add", "update" or "removed"id
- finger unique identifier corresponding to the last event receivedp
- the corresponding finger position