|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ToolService
Interface for service that tracks available tools.
Method Summary | ||
---|---|---|
Tool |
getActiveTool()
|
|
List<Tool> |
getAlwaysActiveTools()
|
|
|
getTool(Class<T> toolClass)
Get a tool given its class. |
|
Tool |
getTool(String name)
|
|
List<Tool> |
getTools()
|
|
boolean |
isSeparatorNeeded(Tool tool1,
Tool tool2)
Returns true if the two specified tools should have a separator between them on the tool bar. |
|
void |
reportLine(double x1,
double y1,
double x2,
double y2)
Publishes line length and angle in the status bar. |
|
void |
reportLine(RealCoords p1,
RealCoords p2)
Publishes line length and angle in the status bar. |
|
void |
reportPoint(double x,
double y)
Publishes point coordinates to the status bar. |
|
void |
reportPoint(RealCoords p)
Publishes point coordinates to the status bar. |
|
void |
reportRectangle(double x,
double y,
double w,
double h)
Publishes rectangle dimensions in the status bar. |
|
void |
reportRectangle(RealCoords p1,
RealCoords p2)
Publishes rectangle dimensions in the status bar. |
|
void |
setActiveTool(Tool activeTool)
|
Methods inherited from interface org.scijava.plugin.SingletonService |
---|
getInstance, getInstances |
Methods inherited from interface org.scijava.plugin.PTService |
---|
getPlugins, getPluginService, getPluginType |
Methods inherited from interface org.scijava.service.Service |
---|
initialize, registerEventHandlers |
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 |
Methods inherited from interface org.scijava.Disposable |
---|
dispose |
Method Detail |
---|
Tool getTool(String name)
<T extends Tool> T getTool(Class<T> toolClass)
T
- the tool's typetoolClass
- the class of the tool to fetch
List<Tool> getTools()
List<Tool> getAlwaysActiveTools()
Tool getActiveTool()
void setActiveTool(Tool activeTool)
boolean isSeparatorNeeded(Tool tool1, Tool tool2)
void reportRectangle(double x, double y, double w, double h)
void reportRectangle(RealCoords p1, RealCoords p2)
void reportLine(double x1, double y1, double x2, double y2)
void reportLine(RealCoords p1, RealCoords p2)
void reportPoint(double x, double y)
void reportPoint(RealCoords p)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |