org.jmol.viewer
Class ActionManager.Gesture
java.lang.Object
org.jmol.viewer.ActionManager.Gesture
- Enclosing class:
- ActionManager
protected class ActionManager.Gesture
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
action
private int action
nodes
ActionManager.MotionPoint[] nodes
ptNext
private int ptNext
time0
private long time0
ActionManager.Gesture
ActionManager.Gesture(int nPoints)
setAction
void setAction(int action,
long time)
getAction
int getAction()
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()
getPointCount
int getPointCount(int nPoints,
int nPointsPrevious)
getNode
ActionManager.MotionPoint getNode(int i)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object