public class ActionManagerMT extends ActionManager implements JmolMultiTouchClient
ActionManager.Gesture, ActionManager.MotionPoint, ActionManager.Mouse| Modifier and Type | Field and Description |
|---|---|
private JmolMultiTouchAdapter |
adapter |
static int |
BIRTH |
static int |
CLICK |
static int |
CLICK_EVENT |
static int |
DBLCLK_EVENT |
static int |
DBLCLK_GESTURE |
static int |
DEATH |
private boolean |
doneHere |
static int |
DRAG_EVENT |
static int |
DRAG_GESTURE |
static int |
DRIVER_NONE |
private static java.lang.String[] |
eventNames |
static int |
FLICK_EVENT |
static int |
FLICK_GESTURE |
private int |
groupID |
static int |
INVALID_GESTURE |
private long |
lastLogTime |
(package private) boolean |
mouseDown |
static int |
MOVE |
static int |
MULTI_POINT_DRAG_GESTURE |
static int |
RELATIVE_DRAG_EVENT |
static int |
RELATIVE_DRAG_GESTURE |
private boolean |
resetNeeded |
static int |
ROTATE_EVENT |
static int |
ROTATE_GESTURE |
static int |
SERVICE_LOST |
private int |
simulationPhase |
private JmolTouchSimulatorInterface |
simulator |
private static com.sparshui.gestures.GestureType |
SINGLE_POINT_GESTURE |
static int |
SPIN_EVENT |
static int |
SPIN_GESTURE |
static int |
TOUCH_EVENT |
static int |
TOUCH_GESTURE |
private static com.sparshui.gestures.GestureType |
TWO_POINT_GESTURE |
static int |
ZOOM_EVENT |
static int |
ZOOM_GESTURE |
ACTION_assignNew, ACTION_center, ACTION_clickFrank, ACTION_connectAtoms, ACTION_count, ACTION_deleteAtom, ACTION_deleteBond, ACTION_depth, ACTION_dragAtom, ACTION_dragDrawObject, ACTION_dragDrawPoint, ACTION_dragLabel, ACTION_dragMinimize, ACTION_dragMinimizeMolecule, ACTION_dragSelected, ACTION_dragZ, ACTION_multiTouchSimulation, ACTION_navTranslate, ACTION_pickAtom, ACTION_pickIsosurface, ACTION_pickLabel, ACTION_pickMeasure, ACTION_pickNavigate, ACTION_pickPoint, ACTION_popupMenu, ACTION_reset, ACTION_rotate, ACTION_rotateBranch, ACTION_rotateSelected, ACTION_rotateZ, ACTION_rotateZorZoom, ACTION_select, ACTION_selectAndDrag, ACTION_selectAndNot, ACTION_selectNone, ACTION_selectOr, ACTION_selectToggle, ACTION_selectToggleExtended, ACTION_setMeasure, ACTION_slab, ACTION_slabAndDepth, ACTION_slideZoom, ACTION_spinDrawObjectCCW, ACTION_spinDrawObjectCW, ACTION_stopMotion, ACTION_swipe, ACTION_translate, ACTION_wheelZoom, binding, clickedCount, current, DEFAULT_GESTURE_SWIPE_FACTOR, DEFAULT_MOUSE_DRAG_FACTOR, DEFAULT_MOUSE_WHEEL_FACTOR, dragGesture, haveMultiTouchInput, hoverWatcherThread, isMultiTouchClient, isMultiTouchServer, MININUM_GESTURE_DELAY_MILLISECONDS, mouseDragFactor, mouseWheelFactor, moved, PICKING_ASSIGN_ATOM, PICKING_ASSIGN_BOND, PICKING_CENTER, PICKING_CONNECT, PICKING_DELETE_ATOM, PICKING_DELETE_BOND, PICKING_DRAG_ATOM, PICKING_DRAG_MINIMIZE, PICKING_DRAG_MINIMIZE_MOLECULE, PICKING_DRAG_MOLECULE, PICKING_DRAG_SELECTED, PICKING_DRAW, PICKING_IDENTIFY, PICKING_IDENTIFY_BOND, PICKING_INVERT_STEREO, PICKING_LABEL, PICKING_MEASURE, PICKING_MEASURE_ANGLE, PICKING_MEASURE_DISTANCE, PICKING_MEASURE_SEQUENCE, PICKING_MEASURE_TORSION, PICKING_NAVIGATE, PICKING_OFF, PICKING_ROTATE_BOND, PICKING_SELECT_ATOM, PICKING_SELECT_CHAIN, PICKING_SELECT_ELEMENT, PICKING_SELECT_GROUP, PICKING_SELECT_MODEL, PICKING_SELECT_MOLECULE, PICKING_SELECT_POLYMER, PICKING_SELECT_SITE, PICKING_SELECT_STRUCTURE, PICKING_SPIN, PICKING_STRUTS, PICKING_SYMMETRY, PICKINGSTYLE_MEASURE_OFF, PICKINGSTYLE_MEASURE_ON, PICKINGSTYLE_SELECT_CHIME, PICKINGSTYLE_SELECT_DRAG, PICKINGSTYLE_SELECT_JMOL, PICKINGSTYLE_SELECT_PFAAT, PICKINGSTYLE_SELECT_RASMOL, pressedCount, viewer, xyRange| Constructor and Description |
|---|
ActionManagerMT() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
dispose() |
java.util.List<com.sparshui.gestures.GestureType> |
getAllowedGestures(int groupID) |
protected float |
getDegrees(int delta,
int i) |
private static java.lang.String |
getEventName(int i) |
protected float |
getExitRate() |
int |
getGroupID(int x,
int y) |
private void |
logEvent(java.lang.String type,
javax.vecmath.Point3f pt) |
void |
mouseAction(int action,
long time,
int x,
int y,
int count,
int modifiers) |
void |
processEvent(int groupID,
int eventType,
int touchID,
int iData,
javax.vecmath.Point3f pt,
long time) |
protected void |
setBinding(Binding newBinding) |
void |
setViewer(Viewer viewer,
java.lang.String commandOptions) |
private void |
startSparshUIService(boolean isSimulated) |
checkMotion, clearBindings, clearMouseInfo, clearTimeouts, getActionFromName, getActionName, getBindingInfo, getMouseInfo, getPickingMode, getPickingModeName, getPickingState, getPickingStyle, getPickingStyleName, hoverOff, hoverOn, isMTClient, isMTServer, keyPressed, keyReleased, mouseEntered, mouseExited, setCurrent, setModeMouse, setMouseMode, setTimeout, showTimeout, startHoverWatcher, triggerTimeout, zoomByFactorprivate JmolMultiTouchAdapter adapter
private JmolTouchSimulatorInterface simulator
private int groupID
private int simulationPhase
private boolean resetNeeded
private long lastLogTime
private boolean doneHere
public static final int DRAG_GESTURE
public static final int MULTI_POINT_DRAG_GESTURE
public static final int ROTATE_GESTURE
public static final int SPIN_GESTURE
public static final int TOUCH_GESTURE
public static final int ZOOM_GESTURE
public static final int DBLCLK_GESTURE
public static final int FLICK_GESTURE
public static final int RELATIVE_DRAG_GESTURE
public static final int INVALID_GESTURE
private static final com.sparshui.gestures.GestureType TWO_POINT_GESTURE
private static final com.sparshui.gestures.GestureType SINGLE_POINT_GESTURE
public static final int DRIVER_NONE
public static final int SERVICE_LOST
public static final int DRAG_EVENT
public static final int ROTATE_EVENT
public static final int SPIN_EVENT
public static final int TOUCH_EVENT
public static final int ZOOM_EVENT
public static final int DBLCLK_EVENT
public static final int FLICK_EVENT
public static final int RELATIVE_DRAG_EVENT
public static final int CLICK_EVENT
private static final java.lang.String[] eventNames
public static final int BIRTH
public static final int DEATH
public static final int MOVE
public static final int CLICK
boolean mouseDown
public void setViewer(Viewer viewer, java.lang.String commandOptions)
setViewer in class ActionManagerprivate void startSparshUIService(boolean isSimulated)
protected void setBinding(Binding newBinding)
setBinding in class ActionManagerpublic void clear()
clear in class ActionManagerpublic void dispose()
dispose in class ActionManagerprivate static java.lang.String getEventName(int i)
public java.util.List<com.sparshui.gestures.GestureType> getAllowedGestures(int groupID)
getAllowedGestures in interface JmolMultiTouchClientpublic int getGroupID(int x,
int y)
getGroupID in interface JmolMultiTouchClientpublic void processEvent(int groupID,
int eventType,
int touchID,
int iData,
javax.vecmath.Point3f pt,
long time)
processEvent in interface JmolMultiTouchClientprocessEvent in class ActionManagerprivate void logEvent(java.lang.String type,
javax.vecmath.Point3f pt)
public void mouseAction(int action,
long time,
int x,
int y,
int count,
int modifiers)
mouseAction in class ActionManagerprotected float getExitRate()
getExitRate in class ActionManagerprotected float getDegrees(int delta,
int i)
getDegrees in class ActionManager