public class JmolSparshClientAdapter extends JmolMultiTouchClientAdapter implements com.sparshui.client.SparshClient
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
doneHere |
private JmolGestureServerInterface |
gestureServer |
private com.sparshui.client.ClientServerConnection |
serverConnection |
actionManager, isServer, ptTemp
Constructor and Description |
---|
JmolSparshClientAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.util.List<com.sparshui.GestureType> |
getAllowedGestures(int groupID)
This method must return the allowed Gestures for the specified
group.
|
int |
getGroupID(com.sparshui.common.Location location)
This method must return an ID for a group of points that should
be processed together.
|
void |
processEvent(int groupID,
com.sparshui.common.Event event)
Translate the specialized Sparsh UI information into
a format that Jmol's ActionManager can understand
without any special classes.
|
boolean |
setMultiTouchClient(Viewer vwr,
JmolMultiTouchClient client,
boolean isSimulation) |
fixXY, isServer, mouseMoved
private com.sparshui.client.ClientServerConnection serverConnection
boolean doneHere
private JmolGestureServerInterface gestureServer
public void dispose()
dispose
in interface JmolMultiTouchAdapter
dispose
in class JmolMultiTouchClientAdapter
public boolean setMultiTouchClient(Viewer vwr, JmolMultiTouchClient client, boolean isSimulation)
setMultiTouchClient
in interface JmolMultiTouchAdapter
setMultiTouchClient
in class JmolMultiTouchClientAdapter
public java.util.List<com.sparshui.GestureType> getAllowedGestures(int groupID)
com.sparshui.client.SparshClient
getAllowedGestures
in interface com.sparshui.client.SparshClient
groupID
- The groupID we wish to obtain the allowed gestures for.public int getGroupID(com.sparshui.common.Location location)
com.sparshui.client.SparshClient
getGroupID
in interface com.sparshui.client.SparshClient
location
- The location with coordinate values between 0 and 1
of the point we are requesting the groupID for.public void processEvent(int groupID, com.sparshui.common.Event event)
processEvent
in interface com.sparshui.client.SparshClient
groupID
- event
-