Class LineBandTool
java.lang.Object
org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
org.locationtech.jtstest.testbuilder.ui.tools.LineBandTool
- All Implemented Interfaces:
KeyListener
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
,Tool
- Direct Known Subclasses:
AbstractDrawTool
,AbstractStreamDrawTool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private List
private boolean
protected Coordinate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(Coordinate c) protected abstract void
private void
drawVertices
(GeneralPath path) protected void
Returns an empty List once the shape is cleared.protected Shape
getShape()
Gets the shape for displaying the current state of the action.protected boolean
void
protected void
void
void
void
protected void
setClickCountToFinishGesture
(int clickCountToFinish) protected void
setCloseRing
(boolean closeRing) protected void
setDrawBandLines
(boolean drawBandLines) protected Coordinate[]
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
clearIndicator, isIndicatorVisible, redrawIndicator
Methods 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
-
coordinates
-
tentativeCoordinate
-
closeRing
private boolean closeRing -
clickCountToFinish
private int clickCountToFinish -
drawBandLines
private boolean drawBandLines
-
-
Constructor Details
-
LineBandTool
public LineBandTool() -
LineBandTool
-
-
Method Details
-
setCloseRing
protected void setCloseRing(boolean closeRing) -
setClickCountToFinishGesture
protected void setClickCountToFinishGesture(int clickCountToFinish) -
setDrawBandLines
protected void setDrawBandLines(boolean drawBandLines) -
getCoordinates
Returns an empty List once the shape is cleared.- See Also:
-
lastCoordinate
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classBasicTool
-
mouseLocationChanged
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classIndicatorTool
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classIndicatorTool
-
add
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classBasicTool
-
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
-
drawVertices
-
isFinishingRelease
-
toArray
-
finishGesture
- Throws:
Exception
-
bandFinished
- Throws:
Exception
-