public interface ToolService extends SingletonService<Tool>, SciJavaService
Modifier and Type | Method and Description |
---|---|
Tool |
getActiveTool() |
List<Tool> |
getAlwaysActiveTools() |
<T extends Tool> |
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) |
getInstance, getInstances
create, getPlugins, getPluginService, getPluginType
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
<T extends Tool> T getTool(Class<T> toolClass)
T
- the tool's typetoolClass
- the class of the tool to fetchTool 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)
Copyright © 2009–2015 SciJava. All rights reserved.