public abstract class LineBandTool extends IndicatorTool
Modifier and Type | Field and Description |
---|---|
protected Coordinate |
tentativeCoordinate |
Constructor and Description |
---|
LineBandTool() |
LineBandTool(Cursor cursor) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(Coordinate c) |
protected abstract void |
bandFinished() |
protected void |
finishGesture() |
List |
getCoordinates()
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 |
isFinishingRelease(MouseEvent e) |
Coordinate |
lastCoordinate() |
void |
mouseDragged(MouseEvent e) |
protected void |
mouseLocationChanged(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
protected void |
setClickCountToFinishGesture(int clickCountToFinish) |
protected void |
setCloseRing(boolean closeRing) |
protected void |
setDrawBandLines(boolean drawBandLines) |
protected Coordinate[] |
toArray(List coordinates) |
clearIndicator, isIndicatorVisible, redrawIndicator
activate, deactivate, geomModel, getCursor, getGraphics2D, gridSize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseWheelMoved, panel, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid
protected Coordinate tentativeCoordinate
public LineBandTool()
public LineBandTool(Cursor cursor)
protected void setCloseRing(boolean closeRing)
protected void setClickCountToFinishGesture(int clickCountToFinish)
protected void setDrawBandLines(boolean drawBandLines)
public List getCoordinates()
public Coordinate lastCoordinate()
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class BasicTool
protected void mouseLocationChanged(MouseEvent e)
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class IndicatorTool
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class IndicatorTool
protected void add(Coordinate c)
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class BasicTool
protected Shape getShape()
IndicatorTool
getShape
in class IndicatorTool
protected boolean isFinishingRelease(MouseEvent e)
protected Coordinate[] toArray(List coordinates)
Copyright © 2021. All rights reserved.