public class MouseGestureTool extends Tool
Tool.ActivationRequest
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
MouseGestureTool() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleEditEvent(boolean isActive,
EditEvent e)
Handle the given
EditEvent . |
protected void |
handleGesture(Component source,
String gesture,
GeneralPath path) |
boolean |
isShowGesturePath() |
protected void |
render(RenderParameters parameters,
boolean isActive)
Renders the Tool's UI onto the given
Graphics2D context using the given
RenderControls . |
void |
setShowGesturePath(boolean showGesturePath) |
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
protected void handleEditEvent(boolean isActive, EditEvent e)
Tool
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.handleEditEvent
in class Tool
isActive
- whether this tool is currently activee
- the eventprotected void handleGesture(Component source, String gesture, GeneralPath path)
protected void render(RenderParameters parameters, boolean isActive)
Tool
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.
public void setShowGesturePath(boolean showGesturePath)
public boolean isShowGesturePath()
Copyright © 2024 levigo holding gmbh. All rights reserved.