Class IndicatorTool

java.lang.Object
org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener, Tool
Direct Known Subclasses:
BoxBandTool, EditVertexTool, LineBandTool, MoveTool

public abstract class IndicatorTool extends BasicTool
  • Constructor Details

    • IndicatorTool

      public IndicatorTool()
    • IndicatorTool

      public IndicatorTool(Cursor cursor)
  • Method Details

    • getShape

      protected 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(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
      Overrides:
      mouseDragged in class BasicTool
    • mouseMoved

      public void mouseMoved(MouseEvent e)
      Specified by:
      mouseMoved in interface MouseMotionListener
      Overrides:
      mouseMoved in class BasicTool