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:
DeleteByBoxTool, ExtractComponentTool, RectangleTool
- Version:
- 1.7
-
Field Summary
-
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.protected booleanprotected booleanvoidvoidvoidMethods inherited from class IndicatorTool
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicatorMethods inherited from class BasicTool
activate, deactivate, geomModel, getCursor, getGraphics2D, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid
-
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
-
isRightButton
protected boolean isRightButton() -
isControlKeyDown
protected boolean isControlKeyDown() -
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()
-