|
|||||||||
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 ImageJ tools.
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 ImageJ 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 Tool
public boolean isActiveInAppFrame()
Tool
isActiveInAppFrame
in interface Tool
public MouseCursor getCursor()
Tool
getCursor
in interface Tool
public void activate()
Tool
activate
in interface Tool
public void deactivate()
Tool
deactivate
in interface Tool
public void onKeyDown(KyPressedEvent evt)
Tool
onKeyDown
in interface Tool
public void onKeyUp(KyReleasedEvent evt)
Tool
onKeyUp
in interface Tool
public void onMouseDown(MsPressedEvent evt)
Tool
onMouseDown
in interface Tool
public void onMouseUp(MsReleasedEvent evt)
Tool
onMouseUp
in interface 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
configure
in interface Tool
public String getDescription()
Tool
getDescription
in interface Tool
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |