Class TwoFingerGestureTool
java.lang.Object
com.levigo.jadice.web.client.tool.Tool
com.levigo.jadice.web.client.tools.TwoFingerGestureTool
- All Implemented Interfaces:
MenuContributor
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.tool.Tool
Tool.ActivationRequest
-
Field Summary
Fields inherited from class com.levigo.jadice.web.client.tool.Tool
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
protected void
handleEditEvent
(boolean isActive, EditEvent e) Handle the givenEditEvent
.protected void
Invoked when a multi touch gesture changed.protected void
Invoked when a multi touch gesture ended.protected void
Invoked when a multi touch gesture started.protected void
handleRotate
(GestureEditEvent event) Handles the Rotation of the pageMethods inherited from class com.levigo.jadice.web.client.tool.Tool
contribute, ensureDebugId, getActivationFeedback, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getActivationRequestForTouchMove, getActivationRequestForTouchStart, getDispatchPriority, getManager, getRenderPriority, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, handlePointerDown, handlePointerMove, handlePointerUp, handleTouchEnd, handleTouchMove, handleTouchStart, propagatePropertyChange, render, setActive, setCursor, setCursor, setEnabled, setManager, setStatusFeedback
-
Constructor Details
-
TwoFingerGestureTool
public TwoFingerGestureTool()
-
-
Method Details
-
handleEditEvent
Description copied from class:Tool
Handle the givenEditEvent
. This method dispatches the edit event to the individualhandleXYZ()
-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 classTool
- Parameters:
isActive
- whether this tool is currently activee
- the event
-
handleGestureStart
Description copied from class:Tool
Invoked when a multi touch gesture started.- Overrides:
handleGestureStart
in classTool
- Parameters:
e
- theGestureEditEvent
-
handleGestureChange
Description copied from class:Tool
Invoked when a multi touch gesture changed.- Overrides:
handleGestureChange
in classTool
- Parameters:
e
- theGestureEditEvent
-
handleGestureEnd
Description copied from class:Tool
Invoked when a multi touch gesture ended.- Overrides:
handleGestureEnd
in classTool
- Parameters:
e
- theGestureEditEvent
-
handleRotate
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()
-