Logo Search packages:      
Sourcecode: jmol version File versions  Download package

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Package Functions | Static Package Functions | Package Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

org::jmol::multitouch::ActionManagerMT Class Reference

Inheritance diagram for org::jmol::multitouch::ActionManagerMT:
Inheritance graph
[legend]
Collaboration diagram for org::jmol::multitouch::ActionManagerMT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void clear ()
void clearTimeouts ()
void dispose ()
List getAllowedGestures (int groupID)
int getAtomPickingMode ()
String getBindingInfo (String qualifiers)
int getBondPickingMode ()
int getGroupID (int x, int y)
Hashtable getMouseInfo ()
String getPickingState ()
int getPickingStyle ()
Rectangle getRubberBand ()
void hoverOff ()
void hoverOn (int atomIndex)
boolean isMTClient ()
boolean isMTServer ()
void keyPressed (KeyEvent ke)
void keyReleased (KeyEvent ke)
void mouseAction (int action, long time, int x, int y, int count, int modifiers)
void mouseEntered (long time, int x, int y)
void mouseExited (long time, int x, int y)
void mouseReleased (long time, int x, int y, int modifiers)
void processEvent (int groupID, int eventType, int touchID, int iData, Point3f pt, long time)
void setModeMouse (int modeMouse)
void setMouseMode ()
void setPickingMode (int pickingMode)
void setPickingStyle (int pickingStyle)
void setTimeout (String name, int mSec, String script)
void setViewer (Viewer viewer, String commandOptions)
String showTimeout (String name)
synchronized void startHoverWatcher (boolean isStart)

Static Public Member Functions

static int getActionFromName (String name)
static String getActionName (int i)
static final int getPickingMode (String str)
static final String getPickingModeName (int pickingMode)
static final int getPickingStyle (String str)
static final String getPickingStyleName (int pickingStyle)

Static Public Attributes

static final int ACTION_assignNew = 42
static final int ACTION_center = 0
static final int ACTION_clickFrank = 15
static final int ACTION_connectAtoms = 41
static final int ACTION_count = 46
static final int ACTION_deleteAtom = 39
static final int ACTION_deleteBond = 40
static final int ACTION_depth = 12
static final int ACTION_dragAtom = 26
static final int ACTION_dragDrawObject = 31
static final int ACTION_dragDrawPoint = 30
static final int ACTION_dragLabel = 29
static final int ACTION_dragMinimize = 27
static final int ACTION_dragMinimizeMolecule = 28
static final int ACTION_dragSelected = 22
static final int ACTION_multiTouchSimulation = 45
static final int ACTION_navTranslate = 7
static final int ACTION_pickAtom = 32
static final int ACTION_pickIsosurface = 37
static final int ACTION_pickLabel = 34
static final int ACTION_pickMeasure = 35
static final int ACTION_pickNavigate = 38
static final int ACTION_pickPoint = 33
static final int ACTION_popupMenu = 14
static final int ACTION_reset = 43
static final int ACTION_rotate = 2
static final int ACTION_rotateBranch = 25
static final int ACTION_rotateSelected = 24
static final int ACTION_rotateZ = 3
static final int ACTION_rotateZorZoom = 4
static final int ACTION_select = 16
static final int ACTION_selectAndDrag = 23
static final int ACTION_selectAndNot = 19
static final int ACTION_selectNone = 17
static final int ACTION_selectOr = 20
static final int ACTION_selectToggle = 18
static final int ACTION_selectToggleExtended = 21
static final int ACTION_setMeasure = 36
static final int ACTION_slab = 11
static final int ACTION_slabAndDepth = 13
static final int ACTION_slideZoom = 6
static final int ACTION_spinDrawObjectCCW = 10
static final int ACTION_spinDrawObjectCW = 9
static final int ACTION_stopMotion = 44
static final int ACTION_swipe = 8
static final int ACTION_translate = 1
static final int ACTION_wheelZoom = 5
static final int BIRTH = 0
static final int CLICK = 3
static final int CLICK_EVENT = 8
static final int DBLCLK_EVENT = 5
static final int DBLCLK_GESTURE = 6
static final int DEATH = 1
static final float DEFAULT_GESTURE_SWIPE_FACTOR = 1f
static final float DEFAULT_MOUSE_DRAG_FACTOR = 1f
static final float DEFAULT_MOUSE_WHEEL_FACTOR = 1.02f
static final int DRAG_EVENT = 0
static final int DRAG_GESTURE = 0
static final int DRIVER_NONE = -2
static final int FLICK_EVENT = 6
static final int FLICK_GESTURE = 7
static final int INVALID_GESTURE = 9
static final int MOVE = 2
static final int MULTI_POINT_DRAG_GESTURE = 1
static final int PICKING_ASSIGN_ATOM = 31
static final int PICKING_ASSIGN_BOND = 32
static final int PICKING_CENTER = 3
static final int PICKING_CONNECT = 24
static final int PICKING_DELETE_ATOM = 7
static final int PICKING_DELETE_BOND = 8
static final int PICKING_DRAG_ATOM = 27
static final int PICKING_DRAG_MINIMIZE = 28
static final int PICKING_DRAG_MINIMIZE_MOLECULE = 29
static final int PICKING_DRAG_MOLECULE = 26
static final int PICKING_DRAW = 4
static final int PICKING_IDENTIFY = 1
static final int PICKING_IDENTIFY_BOND = 34
static final int PICKING_INVERT_STEREO = 30
static final int PICKING_LABEL = 2
static final int PICKING_MEASURE = 18
static final int PICKING_MEASURE_ANGLE = 20
static final int PICKING_MEASURE_DISTANCE = 19
static final int PICKING_MEASURE_SEQUENCE = 22
static final int PICKING_MEASURE_TORSION = 21
static final int PICKING_NAVIGATE = 23
static final int PICKING_OFF = 0
static final int PICKING_ROTATE_BOND = 33
static final int PICKING_SELECT_ATOM = 9
static final int PICKING_SELECT_CHAIN = 11
static final int PICKING_SELECT_ELEMENT = 17
static final int PICKING_SELECT_GROUP = 10
static final int PICKING_SELECT_MODEL = 16
static final int PICKING_SELECT_MOLECULE = 12
static final int PICKING_SELECT_POLYMER = 13
static final int PICKING_SELECT_SITE = 15
static final int PICKING_SELECT_STRUCTURE = 14
static final int PICKING_SPIN = 5
static final int PICKING_STRUTS = 25
static final int PICKING_SYMMETRY = 6
static final int PICKINGSTYLE_MEASURE_OFF = 5
static final int PICKINGSTYLE_MEASURE_ON = 4
static final int PICKINGSTYLE_SELECT_CHIME = 0
static final int PICKINGSTYLE_SELECT_DRAG = 3
static final int PICKINGSTYLE_SELECT_JMOL = 0
static final int PICKINGSTYLE_SELECT_PFAAT = 2
static final int PICKINGSTYLE_SELECT_RASMOL = 1
static final int RELATIVE_DRAG_EVENT = 7
static final int RELATIVE_DRAG_GESTURE = 8
static final int ROTATE_EVENT = 1
static final int ROTATE_GESTURE = 2
static final int SERVICE_LOST = -1
static final int SPIN_EVENT = 2
static final int SPIN_GESTURE = 3
static final int TOUCH_EVENT = 3
static final int TOUCH_GESTURE = 4
static final int ZOOM_EVENT = 4
static final int ZOOM_GESTURE = 5

Protected Member Functions

void checkMotion (int cursor)
void clearBindings ()
void clearMouseInfo ()
float getDegrees (int delta, int i)
float getExitRate ()
void setBinding (Binding newBinding)
void setCurrent (long time, int x, int y, int mods)
void zoomByFactor (int dz, int x, int y)

Protected Attributes

Binding binding
int clickedCount
final Mouse current = new Mouse()
Gesture dragGesture = new Gesture(20)
boolean haveMultiTouchInput = false
Thread hoverWatcherThread
boolean isMultiTouchClient
boolean isMultiTouchServer
float mouseDragFactor = DEFAULT_MOUSE_DRAG_FACTOR
float mouseWheelFactor = DEFAULT_MOUSE_WHEEL_FACTOR
final Mouse moved = new Mouse()
int pressedCount
Viewer viewer
int xyRange = 0

Static Protected Attributes

static final long MININUM_GESTURE_DELAY_MILLISECONDS = 5

Package Functions

void bindAction (String desc, String name, Point3f range1, Point3f range2)
int getCurrentX ()
int getCurrentY ()
boolean isBound (int gesture, int action)
void setAtomPickingOption (String option)
void setBondPickingOption (String option)
void setGestureSwipeFactor (float factor)
void setMouseDragFactor (float factor)
void setMouseWheelFactor (float factor)
void unbindAction (String desc, String name)

Static Package Functions

 [static initializer]

Package Attributes

Binding dragBinding
Binding jmolBinding
boolean mouseDown
Binding pfaatBinding
Binding predragBinding
Binding rasmolBinding
Hashtable timeouts

Private Member Functions

void logEvent (String type, Point3f pt)
void startSparshUIService (boolean isSimulated)

Static Private Member Functions

static String getEventName (int i)

Private Attributes

JmolMultiTouchAdapter adapter
boolean doneHere
int groupID
long lastLogTime = 0
boolean resetNeeded = true
int simulationPhase
JmolTouchSimulatorInterface simulator

Static Private Attributes

static final String[] eventNames
static final String SINGLE_POINT_GESTURE = "org.jmol.multitouch.sparshui.SinglePointGesture"
static final String TWO_POINT_GESTURE = "org.jmol.multitouch.sparshui.TwoPointGesture"

Detailed Description

Definition at line 38 of file ActionManagerMT.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index