Package com.sparshui.inputdevice
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 class
protected class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
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.void
dispose()
void
void
mouseDragged
(long time, int x, int y) void
mousePressed
(long time, int x, int y) void
mouseReleased
(long time, int x, int y) void
boolean
startSimulator
(Object display) void
-
Field Details
-
_active
-
-
Constructor Details
-
JmolTouchSimulator
public JmolTouchSimulator()
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceJmolTouchSimulatorInterface
-
startSimulator
- Specified by:
startSimulator
in interfaceJmolTouchSimulatorInterface
-
toggleMode
public void toggleMode()- Specified by:
toggleMode
in interfaceJmolTouchSimulatorInterface
-
startRecording
public void startRecording()- Specified by:
startRecording
in interfaceJmolTouchSimulatorInterface
-
endRecording
public void endRecording()- Specified by:
endRecording
in interfaceJmolTouchSimulatorInterface
-
mousePressed
public void mousePressed(long time, int x, int y) - Specified by:
mousePressed
in interfaceJmolTouchSimulatorInterface
-
mouseReleased
public void mouseReleased(long time, int x, int y) - Specified by:
mouseReleased
in interfaceJmolTouchSimulatorInterface
-
mouseDragged
public void mouseDragged(long time, int x, int y) - Specified by:
mouseDragged
in 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
-
-