public abstract class LineBandTool extends IndicatorTool
Modifier and Type | Field and Description |
---|---|
private int |
clickCountToFinish |
private boolean |
closeRing |
private java.util.List |
coordinates |
private boolean |
drawBandLines |
protected Coordinate |
tentativeCoordinate |
Constructor and Description |
---|
LineBandTool() |
LineBandTool(java.awt.Cursor cursor) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(Coordinate c) |
protected abstract void |
bandFinished() |
private void |
drawVertices(java.awt.geom.GeneralPath path) |
protected void |
finishGesture() |
java.util.List |
getCoordinates()
Returns an empty List once the shape is cleared.
|
protected java.awt.Shape |
getShape()
Gets the shape for displaying the current state of the action.
|
protected boolean |
isFinishingRelease(java.awt.event.MouseEvent e) |
Coordinate |
lastCoordinate() |
void |
mouseDragged(java.awt.event.MouseEvent e) |
protected void |
mouseLocationChanged(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
protected void |
setClickCountToFinishGesture(int clickCountToFinish) |
protected void |
setCloseRing(boolean closeRing) |
protected void |
setDrawBandLines(boolean drawBandLines) |
protected Coordinate[] |
toArray(java.util.List coordinates) |
clearIndicator, isIndicatorVisible, redrawIndicator
activate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toView
private java.util.List coordinates
protected Coordinate tentativeCoordinate
private boolean closeRing
private int clickCountToFinish
private boolean drawBandLines
public LineBandTool()
public LineBandTool(java.awt.Cursor cursor)
protected void setCloseRing(boolean closeRing)
protected void setClickCountToFinishGesture(int clickCountToFinish)
protected void setDrawBandLines(boolean drawBandLines)
public java.util.List getCoordinates()
public Coordinate lastCoordinate()
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class BasicTool
protected void mouseLocationChanged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class IndicatorTool
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class IndicatorTool
protected void add(Coordinate c)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class BasicTool
protected java.awt.Shape getShape()
IndicatorTool
getShape
in class IndicatorTool
private void drawVertices(java.awt.geom.GeneralPath path)
protected boolean isFinishingRelease(java.awt.event.MouseEvent e)
protected Coordinate[] toArray(java.util.List coordinates)
protected void finishGesture() throws java.lang.Exception
java.lang.Exception
protected abstract void bandFinished() throws java.lang.Exception
java.lang.Exception