Package org.jmol.viewer
Class Gesture
- java.lang.Object
-
- org.jmol.viewer.Gesture
-
class Gesture extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intadd(int action, int x, int y, long time)(package private) intgetDX(int nPoints, int nPointsPrevious)(package private) intgetDY(int nPoints, int nPointsPrevious)(package private) MotionPointgetNode(int i)(package private) intgetPointCount()private intgetPointCount2(int nPoints, int nPointsPrevious)floatgetSpeedPixelsPerMillisecond(int nPoints, int nPointsPrevious)longgetTimeDifference(int nPoints)(package private) voidsetAction(int action, long time)java.lang.StringtoString()
-
-
-
Field Detail
-
action
private int action
-
nodes
MotionPoint[] nodes
-
ptNext
private int ptNext
-
time0
private long time0
-
vwr
private Viewer vwr
-
-
Constructor Detail
-
Gesture
public Gesture(int nPoints, Viewer vwr)
-
-
Method Detail
-
setAction
void setAction(int action, long time)
-
add
int add(int action, int x, int y, long time)
-
getTimeDifference
public long getTimeDifference(int nPoints)
-
getSpeedPixelsPerMillisecond
public float getSpeedPixelsPerMillisecond(int nPoints, int nPointsPrevious)
-
getDX
int getDX(int nPoints, int nPointsPrevious)
-
getDY
int getDY(int nPoints, int nPointsPrevious)
-
getPointCount
int getPointCount()
-
getPointCount2
private int getPointCount2(int nPoints, int nPointsPrevious)
-
getNode
MotionPoint getNode(int i)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-