public class EmbeddedLinkTool
extends com.levigo.jadice.swing.internal.tool.AbstractBaseTool
Tool.ActivationRequest
activeGesture, currentPage, enableContextToolbar, isActive, lastRenderControls, lastRenderedPageBounds
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
EmbeddedLinkTool() |
Modifier and Type | Method and Description |
---|---|
Tool.ActivationRequest |
getActivationFeedback(MouseEditEvent e)
Provide feedback for the user about what would happen, if the mouse were pressed at the current
location.
|
protected Collection<Object> |
getContext()
Returns the context in which the instruction was executed.
|
protected int |
getDispatchPriority()
Return the dispatch priority for this tool.
|
protected void |
handleMouseMoved(MouseEditEvent e,
boolean isActive)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
|
protected void |
handleMouseReleased(MouseEditEvent e,
boolean isActive)
Invoked when a mouse button has been released on a component.
|
protected void |
render(RenderParameters parameters,
boolean isActive)
Renders the Tool's UI onto the given
Graphics2D context using the given
RenderControls . |
void |
setInstructionExecutorInventory(InstructionExecutorInventory instructionExecutorInventory)
Set the
InstructionExecutorInventory to be used in the EmbeddedLinkTool . |
activateToolbar, afterHandleEditEvent, autoscroll, beforeHandleEditEvent, checkForRenderGeometryChange, deactivateToolbar, endGesture, getActiveGesture, getContextToolbar, getCurrentPage, getPreferredToolbarLocation, getUndoManager, handleEditEvent, handleEditEventPreDispatch, isEnableContextToolbar, serviceGesture, setActive, setEnableContextToolbar, shallHandleEditEvent, startGesture, switchFocus, toolbarShallBeActive, updateToolbarLocation, updateToolbarVisibility
contribute, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getManager, getRenderPriority, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMousePressed, handleMouseWheelMoved, propagatePropertyChange, setCursor, setEnabled, setManager, setStatusFeedback
@CallOnEDT public Tool.ActivationRequest getActivationFeedback(MouseEditEvent e)
Tool
MouseEvent.MOUSE_MOVED
events. If this
method returns null
no feedback is provided at all.
The activation request returned from this method is the same object that is used during
Tool.getActivationRequestForKeyPressed(KeyEditEvent)
to signal the auto-activation
candidacy.
This method should only return an activation request if it will actually candidate for
auto-activation later on using Tool.getActivationRequestForMousePressed(MouseEditEvent)
or
Tool.getActivationRequestForMouseDragged(MouseEditEvent)
.getActivationFeedback
in class Tool
protected void handleMouseMoved(MouseEditEvent e, boolean isActive)
Tool
handleMouseMoved
in class Tool
isActive
- whether this tool is currently activeprotected void handleMouseReleased(MouseEditEvent e, boolean isActive)
Tool
handleMouseReleased
in class Tool
isActive
- whether this tool is currently activeprotected Collection<Object> getContext()
Collection
of Objects defining the context in which the instruction arose.@CallOnEDT public void setInstructionExecutorInventory(InstructionExecutorInventory instructionExecutorInventory)
InstructionExecutorInventory
to be used in the EmbeddedLinkTool
.instructionExecutorInventory
- the InstructionExecutorInventory
to be used in this
EmbeddedLinkTool
. This parameter must not be null
.IllegalArgumentException
- if the given InstructionExecutorInventory
is
null
IllegalStateException
- if the calling thread is not the event dispatch thread. See also
TGASwingUtil.ensureEventDispatchThread()
for further information on this
behaviour.protected int getDispatchPriority()
Tool
Tool.MIN_PRIORITY
...Tool.MAX_PRIORITY
.
The default priority is equal to Tool.MAX_PRIORITY
minus the render priority.getDispatchPriority
in class Tool
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.
render
in class com.levigo.jadice.swing.internal.tool.AbstractBaseTool
parameters
- the view component which is currently being renderedisActive
- whether the called tool is currently activeCopyright © 2024 levigo holding gmbh. All rights reserved.