public abstract class BoxBandTool extends IndicatorTool
Modifier and Type | Field and Description |
---|---|
private static int |
MIN_MOVEMENT |
private java.awt.Point |
zoomBoxEnd |
private java.awt.Point |
zoomBoxStart |
Constructor and Description |
---|
BoxBandTool() |
BoxBandTool(java.awt.Cursor cursor) |
Modifier and Type | Method and Description |
---|---|
protected void |
gestureFinished() |
protected Geometry |
getBox() |
protected java.util.List |
getCoordinates()
Gets the coordinates for the rectangle
starting at the first point clicked.
|
protected java.util.List |
getCoordinatesOfEnvelope()
Getes the coordinates for the rectangle
starting with the lower left point.
|
protected Envelope |
getEnvelope()
Gets the envelope of the indicated rectangle,
in model coordinates.
|
protected java.awt.Shape |
getShape()
Gets the shape for displaying the current state of the action.
|
private boolean |
isSignificantMouseMove() |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicator
activate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toView
private java.awt.Point zoomBoxStart
private java.awt.Point zoomBoxEnd
private static final int MIN_MOVEMENT
public BoxBandTool()
public BoxBandTool(java.awt.Cursor cursor)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class BasicTool
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class BasicTool
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class IndicatorTool
protected java.awt.Shape getShape()
IndicatorTool
getShape
in class IndicatorTool
private boolean isSignificantMouseMove()
protected Envelope getEnvelope()
protected Geometry getBox()
protected java.util.List getCoordinatesOfEnvelope()
protected java.util.List getCoordinates()
protected void gestureFinished()