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, mouseMovedprivate com.sparshui.client.ClientServerConnection serverConnection
boolean doneHere
private JmolGestureServerInterface gestureServer
public void dispose()
dispose in interface JmolMultiTouchAdapterdispose in class JmolMultiTouchClientAdapterpublic boolean setMultiTouchClient(Viewer vwr, JmolMultiTouchClient client, boolean isSimulation)
setMultiTouchClient in interface JmolMultiTouchAdaptersetMultiTouchClient in class JmolMultiTouchClientAdapterpublic java.util.List<com.sparshui.GestureType> getAllowedGestures(int groupID)
com.sparshui.client.SparshClientgetAllowedGestures in interface com.sparshui.client.SparshClientgroupID - The groupID we wish to obtain the allowed gestures for.public int getGroupID(com.sparshui.common.Location location)
com.sparshui.client.SparshClientgetGroupID in interface com.sparshui.client.SparshClientlocation - 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.SparshClientgroupID - event -