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
public abstract class BoxBandTool extends IndicatorTool
- Version:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description BoxBandTool()BoxBandTool(Cursor cursor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()protected GeometrygetBox()protected ListgetCoordinates()Gets the coordinates for the rectangle starting at the first point clicked.protected ListgetCoordinatesOfEnvelope()Getes the coordinates for the rectangle starting with the lower left point.protected EnvelopegetEnvelope()Gets the envelope of the indicated rectangle, in model coordinates.protected ShapegetShape()Gets the shape for displaying the current state of the action.protected booleanisControlKeyDown()protected booleanisRightButton()voidmouseDragged(MouseEvent e)voidmousePressed(MouseEvent e)voidmouseReleased(MouseEvent e)-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicator
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
activate, deactivate, geomModel, getCursor, getGraphics2D, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid
-
-
-
-
Constructor Detail
-
BoxBandTool
public BoxBandTool()
-
BoxBandTool
public BoxBandTool(Cursor cursor)
-
-
Method Detail
-
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classBasicTool
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classBasicTool
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classIndicatorTool
-
getShape
protected Shape 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
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()
-
-