Package org.jmol.viewer
Class Gesture
java.lang.Object
org.jmol.viewer.Gesture
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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
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) toString()
-
Field Details
-
action
private int action -
nodes
MotionPoint[] nodes -
ptNext
private int ptNext -
time0
private long time0 -
vwr
-
-
Constructor Details
-
Gesture
-
-
Method Details
-
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
-
toString
-