Class JmolTouchSimulator
java.lang.Object
com.sparshui.inputdevice.JmolTouchSimulator
- All Implemented Interfaces:
JmolTouchSimulatorInterface
allows Jmol to implement multitouch testing using the mouse
press CTRL-LEFT and drag twice for a two-stroke multitouch gesture
that will be sent to the server in an interlaced fashion.
adapted by Bob Hanson for Jmol 11/29/2009
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotocol modified by Bob Hanson for Jmol to demonstrate extended SparshUI protocol to include a return from the server indicating whether or not to consume this event.voiddispose()voidvoidmouseDragged(long time, int x, int y) voidmousePressed(long time, int x, int y) voidmouseReleased(long time, int x, int y) voidbooleanstartSimulator(Object display) void
-
Field Details
-
_active
-
-
Constructor Details
-
JmolTouchSimulator
public JmolTouchSimulator()
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfaceJmolTouchSimulatorInterface
-
startSimulator
- Specified by:
startSimulatorin interfaceJmolTouchSimulatorInterface
-
toggleMode
public void toggleMode()- Specified by:
toggleModein interfaceJmolTouchSimulatorInterface
-
startRecording
public void startRecording()- Specified by:
startRecordingin interfaceJmolTouchSimulatorInterface
-
endRecording
public void endRecording()- Specified by:
endRecordingin interfaceJmolTouchSimulatorInterface
-
mousePressed
public void mousePressed(long time, int x, int y) - Specified by:
mousePressedin interfaceJmolTouchSimulatorInterface
-
mouseReleased
public void mouseReleased(long time, int x, int y) - Specified by:
mouseReleasedin interfaceJmolTouchSimulatorInterface
-
mouseDragged
public void mouseDragged(long time, int x, int y) - Specified by:
mouseDraggedin interfaceJmolTouchSimulatorInterface
-
dispatchTouchEvent
protocol modified by Bob Hanson for Jmol to demonstrate extended SparshUI protocol to include a return from the server indicating whether or not to consume this event. server return == (byte) 1 --> do consume this event server return == (byte) 0 --> do not consume this event- Parameters:
data-
-