Class SinglePointGesture

java.lang.Object
org.jmol.multitouch.sparshui.SinglePointGesture
All Implemented Interfaces:
com.sparshui.gestures.Gesture

public class SinglePointGesture extends Object implements com.sparshui.gestures.Gesture
SINGLE_POINT_GESTURE only passes single-touch gestures. allows detection of click and double-click
  • Field Details

    • MAXIMUM_CLICK_TIME

      private static final long MAXIMUM_CLICK_TIME
      See Also:
    • _nCurrent

      private int _nCurrent
    • _nMoves

      private int _nMoves
    • _myId

      private int _myId
    • _birth

      private com.sparshui.server.TouchPoint _birth
  • Constructor Details

    • SinglePointGesture

      public SinglePointGesture()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: com.sparshui.gestures.Gesture
      Get the name of this gesture.
      Specified by:
      getName in interface com.sparshui.gestures.Gesture
      Returns:
      The name of this gesture.
    • getGestureType

      public int getGestureType()
      Description copied from interface: com.sparshui.gestures.Gesture
      Get the integer value of this gesture type. Gesture values are defined in GestureType.java.
      Specified by:
      getGestureType in interface com.sparshui.gestures.Gesture
      Returns:
      The gesture type.
    • processChange

      public List<com.sparshui.common.Event> processChange(List<com.sparshui.server.TouchPoint> touchPoints, com.sparshui.server.TouchPoint changedTouchPoint)
      incorporates double-click gesture
      Specified by:
      processChange in interface com.sparshui.gestures.Gesture
      Parameters:
      touchPoints -
      changedTouchPoint -
      Returns:
      Vector of Events
    • checkClick

      private boolean checkClick(com.sparshui.server.TouchPoint tpNew, List<com.sparshui.common.Event> retEvents, boolean isDeath)