com.levigo.jadice.demo.gestures
Class MouseGestureTool
java.lang.Object
com.levigo.jadice.swing.tool.Tool
com.levigo.jadice.demo.gestures.MouseGestureTool
- All Implemented Interfaces:
- MenuContributor
public class MouseGestureTool
- extends Tool
Methods inherited from class com.levigo.jadice.swing.tool.Tool |
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, setActive, setCursor, setEnabled, setManager, setStatusFeedback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MouseGestureTool
public MouseGestureTool()
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 activee
- the event
handleGesture
protected void handleGesture(Component source,
String gesture,
GeneralPath path)
render
protected void render(RenderParameters parameters,
boolean isActive)
- Description copied from class:
Tool
- Renders the Tool's UI onto the given
Graphics2D
context using the given
RenderControls
.
This render method is called within the context and during the rendering of a single page. The
page being rendered is passed to implementors of this method in order to be able to control and
influence the page rendering.
- Overrides:
render
in class Tool
- Parameters:
parameters
- the view component which is currently being renderedisActive
- whether the called tool is currently active
setShowGesturePath
public void setShowGesturePath(boolean showGesturePath)
isShowGesturePath
public boolean isShowGesturePath()
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.