public abstract class AbstractTool extends AbstractRichPlugin implements Tool
Tool implementations.| Constructor and Description |
|---|
AbstractTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Informs the tool that it is now active.
|
void |
configure()
Occurs when the user right clicks this tool's icon.
|
void |
deactivate()
Informs the tool that it is no longer active.
|
MouseCursor |
getCursor()
The tool's mouse pointer.
|
String |
getDescription()
Returns the text the tool provides when mouse hovers over tool
|
boolean |
isActiveInAppFrame()
When true, tool receives events when the main application frame is active.
|
boolean |
isAlwaysActive()
When true, tool has no button but rather is active all the time.
|
void |
onKeyDown(KyPressedEvent evt)
Occurs when a key on the keyboard is pressed while the tool is active.
|
void |
onKeyUp(KyReleasedEvent evt)
Occurs when a key on the keyboard is released while the tool is active.
|
void |
onMouseClick(MsClickedEvent evt)
Occurs when a mouse button is double clicked while the tool is active.
|
void |
onMouseDown(MsPressedEvent evt)
Occurs when a mouse button is pressed while the tool is active.
|
void |
onMouseDrag(MsDraggedEvent evt)
Occurs when the mouse is dragged while the tool is active.
|
void |
onMouseMove(MsMovedEvent evt)
Occurs when the mouse is moved while the tool is active.
|
void |
onMouseUp(MsReleasedEvent evt)
Occurs when a mouse button is released while the tool is active.
|
void |
onMouseWheel(MsWheelEvent evt)
Occurs when the mouse wheel is moved while the tool is active.
|
compareTo, getInfo, getPriority, setInfo, setPriority, toStringcontext, getContext, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfopublic boolean isAlwaysActive()
ToolisAlwaysActive in interface Toolpublic boolean isActiveInAppFrame()
ToolisActiveInAppFrame in interface Toolpublic MouseCursor getCursor()
Toolpublic void activate()
Toolpublic void deactivate()
Tooldeactivate in interface Toolpublic void onKeyDown(KyPressedEvent evt)
Toolpublic void onKeyUp(KyReleasedEvent evt)
Toolpublic void onMouseDown(MsPressedEvent evt)
ToolonMouseDown in interface Toolpublic void onMouseUp(MsReleasedEvent evt)
Toolpublic void onMouseClick(MsClickedEvent evt)
ToolonMouseClick in interface Toolpublic void onMouseMove(MsMovedEvent evt)
ToolonMouseMove in interface Toolpublic void onMouseDrag(MsDraggedEvent evt)
ToolonMouseDrag in interface Toolpublic void onMouseWheel(MsWheelEvent evt)
ToolonMouseWheel in interface Toolpublic void configure()
Toolpublic String getDescription()
ToolgetDescription in interface ToolCopyright © 2009–2016 SciJava. All rights reserved.