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 TypeMethodDescriptionvoidvoidvoidprotected voidhandleEditEvent(boolean isActive, EditEvent e) Handle the givenEditEvent.protected voidInvoked when a multi touch gesture changed.protected voidInvoked when a multi touch gesture ended.protected voidInvoked when a multi touch gesture started.protected voidhandleRotate(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:ToolHandle 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:
handleEditEventin classTool- Parameters:
isActive- whether this tool is currently activee- the event
-
handleGestureStart
Description copied from class:ToolInvoked when a multi touch gesture started.- Overrides:
handleGestureStartin classTool- Parameters:
e- theGestureEditEvent
-
handleGestureChange
Description copied from class:ToolInvoked when a multi touch gesture changed.- Overrides:
handleGestureChangein classTool- Parameters:
e- theGestureEditEvent
-
handleGestureEnd
Description copied from class:ToolInvoked when a multi touch gesture ended.- Overrides:
handleGestureEndin 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()
-