|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.tool.AbstractTool
public abstract class AbstractTool
Abstract base class for Tool implementations.
| Constructor Summary | |
|---|---|
AbstractTool()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
|---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
| Methods inherited from class org.scijava.AbstractContextual |
|---|
context, getContext, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.scijava.Contextual |
|---|
context, getContext, setContext |
| Methods inherited from interface org.scijava.Prioritized |
|---|
getPriority, setPriority |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.scijava.plugin.HasPluginInfo |
|---|
getInfo, setInfo |
| Constructor Detail |
|---|
public AbstractTool()
| Method Detail |
|---|
public boolean isAlwaysActive()
Tool
isAlwaysActive in interface Toolpublic boolean isActiveInAppFrame()
Tool
isActiveInAppFrame in interface Toolpublic MouseCursor getCursor()
Tool
getCursor in interface Toolpublic void activate()
Tool
activate in interface Toolpublic void deactivate()
Tool
deactivate in interface Toolpublic void onKeyDown(KyPressedEvent evt)
Tool
onKeyDown in interface Toolpublic void onKeyUp(KyReleasedEvent evt)
Tool
onKeyUp in interface Toolpublic void onMouseDown(MsPressedEvent evt)
Tool
onMouseDown in interface Toolpublic void onMouseUp(MsReleasedEvent evt)
Tool
onMouseUp in interface Toolpublic void onMouseClick(MsClickedEvent evt)
Tool
onMouseClick in interface Toolpublic void onMouseMove(MsMovedEvent evt)
Tool
onMouseMove in interface Toolpublic void onMouseDrag(MsDraggedEvent evt)
Tool
onMouseDrag in interface Toolpublic void onMouseWheel(MsWheelEvent evt)
Tool
onMouseWheel in interface Toolpublic void configure()
Tool
configure in interface Toolpublic String getDescription()
Tool
getDescription in interface Tool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||