Class JsonNioClient.TouchHandler
java.lang.Object
org.openscience.jmol.app.jsonkiosk.JsonNioClient.TouchHandler
- Enclosing interface:
- JsonNioClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
long
int
long
static final int
static final float
static final float
static final float
long
boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPaused
(Viewer vwr) void
process touch or gesture commands driven by hardware.void
pauseScript
(Viewer vwr, boolean isPause) void
syncScript
(Viewer vwr, String script)
-
Field Details
-
swipeCutoff
public static final float swipeCutoff- See Also:
-
swipeCount
public static final int swipeCount- See Also:
-
swipeDelayMs
public static final float swipeDelayMs- See Also:
-
swipeFactor
public static final float swipeFactor- See Also:
-
nFast
public int nFast -
previousMoveTime
public long previousMoveTime -
swipeStartTime
public long swipeStartTime -
latestMoveTime
public long latestMoveTime -
wasSpinOn
public boolean wasSpinOn -
isPaused
public boolean isPaused
-
-
Constructor Details
-
TouchHandler
public TouchHandler()
-
-
Method Details
-
pauseScript
-
checkPaused
-
syncScript
-
nioSync
process touch or gesture commands driven by hardware. From MolecularPlayground.- Parameters:
vwr
-json
-- Throws:
Exception
-