Class BoxBandTool

  • All Implemented Interfaces:
    java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, Tool
    Direct Known Subclasses:
    DeleteVertexTool, ExtractComponentTool, RectangleTool

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

      • zoomBoxStart

        private java.awt.Point zoomBoxStart
      • zoomBoxEnd

        private java.awt.Point zoomBoxEnd
    • Constructor Detail

      • BoxBandTool

        public BoxBandTool()
      • BoxBandTool

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

      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class BasicTool
      • mouseReleased

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

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

        protected java.awt.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:
      • getCoordinatesOfEnvelope

        protected java.util.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 java.util.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()