All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener, Tool
Direct Known Subclasses:
DeleteVertexTool, ExtractComponentTool, RectangleTool

public abstract class BoxBandTool extends IndicatorTool
Version:
1.7
  • Field Details

    • zoomBoxStart

      private Point zoomBoxStart
    • zoomBoxEnd

      private Point zoomBoxEnd
    • MIN_MOVEMENT

      private static final int MIN_MOVEMENT
      See Also:
  • Constructor Details

    • BoxBandTool

      public BoxBandTool()
    • BoxBandTool

      public BoxBandTool(Cursor cursor)
  • Method Details

    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class BasicTool
    • mouseReleased

      public void mouseReleased(MouseEvent e)
      Specified by:
      mouseReleased in interface MouseListener
      Overrides:
      mouseReleased in class BasicTool
    • mouseDragged

      public void mouseDragged(MouseEvent e)
      Specified by:
      mouseDragged in interface MouseMotionListener
      Overrides:
      mouseDragged in class IndicatorTool
    • getShape

      protected Shape getShape()
      Description copied from class: IndicatorTool
      Gets the shape for displaying the current state of the action. Subclasses should override.
      Overrides:
      getShape in class IndicatorTool
      Returns:
      null if nothing should be drawn
    • isSignificantMouseMove

      private boolean isSignificantMouseMove()
    • getEnvelope

      protected Envelope getEnvelope()
      Gets the envelope of the indicated rectangle, in model coordinates.
      Returns:
    • getBox

      protected Geometry getBox()
    • getCoordinatesOfEnvelope

      protected List getCoordinatesOfEnvelope()
      Getes the coordinates for the rectangle starting with the lower left point. The coordinates are oriented CW.
      Returns:
      the coordinates for the rectangle
    • getCoordinates

      protected List getCoordinates()
      Gets the coordinates for the rectangle starting at the first point clicked. The coordinates are oriented CW.
      Returns:
      the coordinates for the rectangle
    • gestureFinished

      protected void gestureFinished()