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 void
gestureFinished()
protected Geometry
getBox()
protected List
getCoordinates()
Gets the coordinates for the rectangle starting at the first point clicked.protected 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 Shape
getShape()
Gets the shape for displaying the current state of the action.protected boolean
isControlKeyDown()
protected boolean
isRightButton()
void
mouseDragged(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(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:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classBasicTool
-
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classBasicTool
-
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classIndicatorTool
-
getShape
protected Shape getShape()
Description copied from class:IndicatorTool
Gets the shape for displaying the current state of the action. Subclasses should override.- Overrides:
getShape
in 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()
-
-