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.
|
getInfo, getPriority, setInfo, setPriority, toString
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public boolean isAlwaysActive()
Tool
isAlwaysActive
in interface Tool
public boolean isActiveInAppFrame()
Tool
isActiveInAppFrame
in interface Tool
public MouseCursor getCursor()
Tool
public void activate()
Tool
public void deactivate()
Tool
deactivate
in interface Tool
public void onKeyDown(KyPressedEvent evt)
Tool
public void onKeyUp(KyReleasedEvent evt)
Tool
public void onMouseDown(MsPressedEvent evt)
Tool
onMouseDown
in interface Tool
public void onMouseUp(MsReleasedEvent evt)
Tool
public void onMouseClick(MsClickedEvent evt)
Tool
onMouseClick
in interface Tool
public void onMouseMove(MsMovedEvent evt)
Tool
onMouseMove
in interface Tool
public void onMouseDrag(MsDraggedEvent evt)
Tool
onMouseDrag
in interface Tool
public void onMouseWheel(MsWheelEvent evt)
Tool
onMouseWheel
in interface Tool
public void configure()
Tool
public String getDescription()
Tool
getDescription
in interface Tool
Copyright © 2009–2016 SciJava. All rights reserved.