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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(Coordinate c) protected abstract voidprotected voidReturns an empty List once the shape is cleared.protected ShapegetShape()Gets the shape for displaying the current state of the action.protected booleanvoidprotected voidvoidvoidvoidprotected voidsetClickCountToFinishGesture(int clickCountToFinish) protected voidsetCloseRing(boolean closeRing) protected voidsetDrawBandLines(boolean drawBandLines) protected Coordinate[]Methods inherited from class IndicatorTool
clearIndicator, isIndicatorVisible, redrawIndicatorMethods inherited from class BasicTool
activate, deactivate, geomModel, getCursor, getGraphics2D, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid
-
Field Details
-
tentativeCoordinate
-
-
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
-
lastCoordinate
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classBasicTool
-
mouseLocationChanged
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classIndicatorTool
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classIndicatorTool
-
add
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classBasicTool
-
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
-
isFinishingRelease
-
toArray
-
finishGesture
-
bandFinished
-