Class ActionManagerMT

java.lang.Object
org.jmol.viewer.ActionManager
org.jmol.multitouch.ActionManagerMT
All Implemented Interfaces:
EventManager, JmolMultiTouchClient

public class ActionManagerMT extends ActionManager implements JmolMultiTouchClient
  • Field Details

  • Constructor Details

    • ActionManagerMT

      public ActionManagerMT()
  • Method Details

    • setViewer

      public void setViewer(Viewer vwr, String commandOptions)
      Overrides:
      setViewer in class ActionManager
      Parameters:
      vwr -
      commandOptions -
    • startSparshUIService

      private void startSparshUIService(boolean isSimulated)
    • setBinding

      protected void setBinding(Binding newBinding)
      Overrides:
      setBinding in class ActionManager
    • clear

      public void clear()
      Overrides:
      clear in class ActionManager
    • dispose

      public void dispose()
      Overrides:
      dispose in class ActionManager
    • getEventName

      private static String getEventName(int i)
    • getAllowedGestures

      public javajs.util.Lst<com.sparshui.GestureType> getAllowedGestures(int groupID)
      Specified by:
      getAllowedGestures in interface JmolMultiTouchClient
    • getGroupID

      public int getGroupID(int x, int y)
      Specified by:
      getGroupID in interface JmolMultiTouchClient
    • processMultitouchEvent

      public void processMultitouchEvent(int groupID, int eventType, int touchID, int iData, javajs.util.P3 pt, long time)
      Description copied from class: ActionManager
      Specific to ActionManagerMT -- for processing SparshUI gestures
      Specified by:
      processMultitouchEvent in interface JmolMultiTouchClient
      Overrides:
      processMultitouchEvent in class ActionManager
      Parameters:
      groupID -
      eventType -
      touchID -
      iData -
      pt -
      time -
    • logEvent

      private void logEvent(String type, javajs.util.P3 pt)
    • mouseAction

      public void mouseAction(int mode, long time, int x, int y, int count, int modifiers)
      Specified by:
      mouseAction in interface EventManager
      Overrides:
      mouseAction in class ActionManager
      Parameters:
      mode - MOVED PRESSED DRAGGED RELEASED CLICKED WHEELED
      time -
      x -
      y -
      count -
      modifiers - LEFT RIGHT MIDDLE WHEEL SHIFT ALT CTRL
    • getDegrees

      protected float getDegrees(float delta, boolean isX)
      Description copied from class: ActionManager
      Transform a screen pixel change to an angular change such that a full sweep of the dimension (up to 500 pixels) corresponds to 180 degrees of rotation.
      Overrides:
      getDegrees in class ActionManager
      Parameters:
      delta -
      isX -
      Returns:
      desired scaled rotation, in degrees