Class IndicatorTool

  • All Implemented Interfaces:
    Tool, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
    Direct Known Subclasses:
    BoxBandTool, EditVertexTool, LineBandTool

    public abstract class IndicatorTool
    extends BasicTool
    • Constructor Detail

      • IndicatorTool

        public IndicatorTool()
      • IndicatorTool

        public IndicatorTool​(java.awt.Cursor cursor)
    • Method Detail

      • getShape

        protected java.awt.Shape getShape()
        Gets the shape for displaying the current state of the action. Subclasses should override.
        Returns:
        null if nothing should be drawn
      • isIndicatorVisible

        public boolean isIndicatorVisible()
        Important for XOR drawing. Even if #getShape returns null, this method will return true between calls of #redrawShape and #clearShape.
      • clearIndicator

        protected void clearIndicator()
      • redrawIndicator

        protected void redrawIndicator()
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent e)
        Specified by:
        mouseDragged in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseDragged in class BasicTool
      • mouseMoved

        public void mouseMoved​(java.awt.event.MouseEvent e)
        Specified by:
        mouseMoved in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseMoved in class BasicTool