public class DefaultToolService extends AbstractSingletonService<Tool> implements ToolService
SEPARATOR_DISTANCE| Constructor and Description |
|---|
DefaultToolService() |
| Modifier and Type | Method and Description |
|---|---|
Tool |
getActiveTool() |
List<Tool> |
getAlwaysActiveTools() |
Tool |
getTool(String name) |
List<Tool> |
getTools() |
protected void |
onEvent(KyPressedEvent event) |
protected void |
onEvent(KyReleasedEvent event) |
protected void |
onEvent(MsClickedEvent event) |
protected void |
onEvent(MsDraggedEvent event) |
protected void |
onEvent(MsMovedEvent event) |
protected void |
onEvent(MsPressedEvent event) |
protected void |
onEvent(MsReleasedEvent event) |
protected void |
onEvent(MsWheelEvent event) |
void |
reportLine(double x1,
double y1,
double x2,
double y2)
Publishes line length and angle in the status bar.
|
void |
reportPoint(double x,
double y)
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 |
setActiveTool(Tool activeTool) |
getInstance, getInstances, objectService, onEvent, onEventpluginServicegetContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPluginType, getTool, isSeparatorNeeded, reportLine, reportPoint, reportRectanglecreate, filterInstances, getInstance, getInstances, initialize, objectServicegetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic Tool getTool(String name)
getTool in interface ToolServicepublic List<Tool> getTools()
getTools in interface ToolServicepublic List<Tool> getAlwaysActiveTools()
getAlwaysActiveTools in interface ToolServicepublic Tool getActiveTool()
getActiveTool in interface ToolServicepublic void setActiveTool(Tool activeTool)
setActiveTool in interface ToolServicepublic void reportRectangle(double x,
double y,
double w,
double h)
ToolServicereportRectangle in interface ToolServicepublic void reportLine(double x1,
double y1,
double x2,
double y2)
ToolServicereportLine in interface ToolServicepublic void reportPoint(double x,
double y)
ToolServicereportPoint in interface ToolServiceprotected void onEvent(KyPressedEvent event)
protected void onEvent(KyReleasedEvent event)
protected void onEvent(MsPressedEvent event)
protected void onEvent(MsReleasedEvent event)
protected void onEvent(MsClickedEvent event)
protected void onEvent(MsMovedEvent event)
protected void onEvent(MsDraggedEvent event)
protected void onEvent(MsWheelEvent event)
Copyright © 2015–2022 SciJava. All rights reserved.