Interface Tool

    • Method Detail

      • isAlwaysActive

        default boolean isAlwaysActive()
        When true, tool has no button but rather is active all the time.
      • isActiveInAppFrame

        default boolean isActiveInAppFrame()
        When true, tool receives events when the main application frame is active. When false, tool only receives events when a display window is active.
      • getCursor

        default MouseCursor getCursor()
        The tool's mouse pointer.
      • activate

        default void activate()
        Informs the tool that it is now active.
      • deactivate

        default void deactivate()
        Informs the tool that it is no longer active.
      • onKeyDown

        default void onKeyDown​(KyPressedEvent evt)
        Occurs when a key on the keyboard is pressed while the tool is active.
      • onKeyUp

        default void onKeyUp​(KyReleasedEvent evt)
        Occurs when a key on the keyboard is released while the tool is active.
      • onMouseDown

        default void onMouseDown​(MsPressedEvent evt)
        Occurs when a mouse button is pressed while the tool is active.
      • onMouseUp

        default void onMouseUp​(MsReleasedEvent evt)
        Occurs when a mouse button is released while the tool is active.
      • onMouseClick

        default void onMouseClick​(MsClickedEvent evt)
        Occurs when a mouse button is double clicked while the tool is active.
      • onMouseMove

        default void onMouseMove​(MsMovedEvent evt)
        Occurs when the mouse is moved while the tool is active.
      • onMouseDrag

        default void onMouseDrag​(MsDraggedEvent evt)
        Occurs when the mouse is dragged while the tool is active.
      • onMouseWheel

        default void onMouseWheel​(MsWheelEvent evt)
        Occurs when the mouse wheel is moved while the tool is active.
      • configure

        default void configure()
        Occurs when the user right clicks this tool's icon.
      • getDescription

        default String getDescription()
        Returns the text the tool provides when mouse hovers over tool