Class TwoFingerGestureTool

java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.TwoFingerGestureTool
All Implemented Interfaces:
MenuContributor

public class TwoFingerGestureTool extends Tool
A tool for two finger gestures. Gestures contained in this tool are two finger scrolling, pinch-to-zoom and two finger rotation. The different gestures can be deactivated.
  • Constructor Details

    • TwoFingerGestureTool

      public TwoFingerGestureTool()
  • Method Details

    • handleEditEvent

      protected void handleEditEvent(boolean isActive, EditEvent e)
      Description copied from class: Tool
      Handle the given EditEvent. This method dispatches the edit event to the individual handleXYZ()-Methods. However, implementors may want and are allowed to override this method in order to perform standard handling tasks common to all types of events.
      Overrides:
      handleEditEvent in class Tool
      Parameters:
      isActive - whether this tool is currently active
      e - the event
    • handleGestureStart

      protected void handleGestureStart(GestureEditEvent e)
      Description copied from class: Tool
      Invoked when a multi touch gesture started.
      Overrides:
      handleGestureStart in class Tool
      Parameters:
      e - the GestureEditEvent
    • handleGestureChange

      protected void handleGestureChange(GestureEditEvent e)
      Description copied from class: Tool
      Invoked when a multi touch gesture changed.
      Overrides:
      handleGestureChange in class Tool
      Parameters:
      e - the GestureEditEvent
    • handleGestureEnd

      protected void handleGestureEnd(GestureEditEvent e)
      Description copied from class: Tool
      Invoked when a multi touch gesture ended.
      Overrides:
      handleGestureEnd in class Tool
      Parameters:
      e - the GestureEditEvent
    • handleRotate

      protected void handleRotate(GestureEditEvent event)
      Handles the Rotation of the page
      Parameters:
      event - the gesture event which should be handled
    • disableZoom

      public void disableZoom()
    • disableScroll

      public void disableScroll()
    • disableRotate

      public void disableRotate()