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, redrawIndicatoractivate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toViewprivate 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.MouseListenermousePressed in class BasicToolpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class BasicToolpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class IndicatorToolpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class BasicToolprotected java.awt.Shape getShape()
IndicatorToolgetShape in class IndicatorToolprotected java.awt.Shape getIndicatorCircle(java.awt.geom.Point2D p)