class Gesture
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
action |
(package private) MotionPoint[] |
nodes |
private int |
ptNext |
private long |
time0 |
private Viewer |
vwr |
Modifier and Type | Method and Description |
---|---|
(package private) int |
add(int action,
int x,
int y,
long time) |
(package private) int |
getDX(int nPoints,
int nPointsPrevious) |
(package private) int |
getDY(int nPoints,
int nPointsPrevious) |
(package private) MotionPoint |
getNode(int i) |
(package private) int |
getPointCount() |
private int |
getPointCount2(int nPoints,
int nPointsPrevious) |
float |
getSpeedPixelsPerMillisecond(int nPoints,
int nPointsPrevious) |
long |
getTimeDifference(int nPoints) |
(package private) void |
setAction(int action,
long time) |
java.lang.String |
toString() |
private int action
MotionPoint[] nodes
private int ptNext
private long time0
private Viewer vwr
public Gesture(int nPoints, Viewer vwr)
void setAction(int action, long time)
int add(int action, int x, int y, long time)
public long getTimeDifference(int nPoints)
public float getSpeedPixelsPerMillisecond(int nPoints, int nPointsPrevious)
int getDX(int nPoints, int nPointsPrevious)
int getDY(int nPoints, int nPointsPrevious)
int getPointCount()
private int getPointCount2(int nPoints, int nPointsPrevious)
MotionPoint getNode(int i)
public java.lang.String toString()
toString
in class java.lang.Object