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

public abstract class BoxBandTool extends IndicatorTool
Version:
1.7
  • 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
    • isRightButton

      protected boolean isRightButton()
    • isControlKeyDown

      protected boolean isControlKeyDown()
    • 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()