public class EditVertexTool extends IndicatorTool
Modifier and Type | Field and Description |
---|---|
private Coordinate[] |
adjVertices |
(package private) Coordinate |
currentVertexLoc |
private static double |
IND_CIRCLE_RADIUS |
private static EditVertexTool |
instance |
private Coordinate |
selectedVertexLocation |
Modifier | Constructor and Description |
---|---|
private |
EditVertexTool() |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Shape |
getIndicatorCircle(java.awt.geom.Point2D p) |
static EditVertexTool |
getInstance() |
protected java.awt.Shape |
getShape()
Gets the shape for displaying the current state of the action.
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicator
activate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toView
private static EditVertexTool instance
Coordinate currentVertexLoc
private Coordinate selectedVertexLocation
private Coordinate[] adjVertices
private static final double IND_CIRCLE_RADIUS
public static EditVertexTool getInstance()
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class BasicTool
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class BasicTool
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class IndicatorTool
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class BasicTool
protected java.awt.Shape getShape()
IndicatorTool
getShape
in class IndicatorTool
protected java.awt.Shape getIndicatorCircle(java.awt.geom.Point2D p)