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, redrawIndicatoractivate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toViewprivate 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.MouseListenermouseReleased in class BasicToolprotected void mouseLocationChanged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class IndicatorToolpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class IndicatorToolprotected void add(Coordinate c)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class BasicToolprotected java.awt.Shape getShape()
IndicatorToolgetShape in class IndicatorToolprivate 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.Exceptionprotected abstract void bandFinished()
throws java.lang.Exception
java.lang.Exception