← 返回首页
ToolService (SciJava Javadocs 0-SNAPSHOT API)
JavaScript is disabled on your browser.
org.scijava.tool

Interface ToolService

    • Method Detail

      • getTool

        default <T extends Tool> T getTool(Class<T> toolClass)
        Get a tool given its class.
        Type Parameters: T - the tool's type Parameters: toolClass - the class of the tool to fetch Returns: the tool, or null if no such tool
      • getAlwaysActiveTools

        List<Tool> getAlwaysActiveTools()
      • getActiveTool

        Tool getActiveTool()
      • setActiveTool

        void setActiveTool(Tool activeTool)
      • isSeparatorNeeded

        default boolean isSeparatorNeeded(Tool tool1, Tool tool2)
        Returns true if the two specified tools should have a separator between them on the tool bar.
      • reportRectangle

        void reportRectangle(double x, double y, double w, double h)
        Publishes rectangle dimensions in the status bar.
      • reportRectangle

        default void reportRectangle(RealCoords p1, RealCoords p2)
        Publishes rectangle dimensions in the status bar.
      • reportLine

        void reportLine(double x1, double y1, double x2, double y2)
        Publishes line length and angle in the status bar.
      • reportLine

        default void reportLine(RealCoords p1, RealCoords p2)
        Publishes line length and angle in the status bar.
      • reportPoint

        void reportPoint(double x, double y)
        Publishes point coordinates to the status bar.
      • reportPoint

        default void reportPoint(RealCoords p)
        Publishes point coordinates to the status bar.

Copyright © 2015–2022 SciJava. All rights reserved.