Class BoxBandTool
java.lang.Object
org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
org.locationtech.jtstest.testbuilder.ui.tools.BoxBandTool
- All Implemented Interfaces:
KeyListener,MouseListener,MouseMotionListener,MouseWheelListener,EventListener,Tool
- Direct Known Subclasses:
DeleteVertexTool,ExtractComponentTool,RectangleTool
- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected GeometrygetBox()protected ListGets the coordinates for the rectangle starting at the first point clicked.protected ListGetes the coordinates for the rectangle starting with the lower left point.protected EnvelopeGets the envelope of the indicated rectangle, in model coordinates.protected ShapegetShape()Gets the shape for displaying the current state of the action.private booleanvoidvoidvoidMethods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicatorMethods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
activate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toView
-
Field Details
-
zoomBoxStart
-
zoomBoxEnd
-
MIN_MOVEMENT
private static final int MIN_MOVEMENT- See Also:
-
-
Constructor Details
-
BoxBandTool
public BoxBandTool() -
BoxBandTool
-
-
Method Details
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classBasicTool
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classBasicTool
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classIndicatorTool
-
getShape
Description copied from class:IndicatorToolGets the shape for displaying the current state of the action. Subclasses should override.- Overrides:
getShapein classIndicatorTool- Returns:
- null if nothing should be drawn
-
isSignificantMouseMove
private boolean isSignificantMouseMove() -
getEnvelope
Gets the envelope of the indicated rectangle, in model coordinates.- Returns:
-
getBox
-
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
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()
-