Class EditVertexTool
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
-
- org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
-
- org.locationtech.jtstest.testbuilder.ui.tools.EditVertexTool
-
- All Implemented Interfaces:
java.awt.event.KeyListener,java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.EventListener,Tool
public class EditVertexTool extends IndicatorTool
- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private Coordinate[]adjVertices(package private) CoordinatecurrentVertexLocprivate static doubleIND_CIRCLE_RADIUSprivate static EditVertexToolinstanceprivate CoordinateselectedVertexLocation
-
Constructor Summary
Constructors Modifier Constructor Description privateEditVertexTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.ShapegetIndicatorCircle(java.awt.geom.Point2D p)static EditVertexToolgetInstance()protected java.awt.ShapegetShape()Gets the shape for displaying the current state of the action.voidmouseClicked(java.awt.event.MouseEvent e)voidmouseDragged(java.awt.event.MouseEvent e)voidmousePressed(java.awt.event.MouseEvent e)voidmouseReleased(java.awt.event.MouseEvent e)-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicator
-
Methods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.BasicTool
activate, deactivate, geomModel, getCursor, getGraphics2D, getModelSnapTolerance, gridSize, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, mouseWheelMoved, panel, toModel, toModel, toModelCoordinate, toModelSnapped, toModelSnappedIfCloseToViewGrid, toModelSnappedToViewGrid, toView, toView
-
-
-
-
Field Detail
-
instance
private static EditVertexTool instance
-
currentVertexLoc
Coordinate currentVertexLoc
-
selectedVertexLocation
private Coordinate selectedVertexLocation
-
adjVertices
private Coordinate[] adjVertices
-
IND_CIRCLE_RADIUS
private static final double IND_CIRCLE_RADIUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EditVertexTool getInstance()
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener- Overrides:
mousePressedin classBasicTool
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener- Overrides:
mouseReleasedin classBasicTool
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDraggedin interfacejava.awt.event.MouseMotionListener- Overrides:
mouseDraggedin classIndicatorTool
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener- Overrides:
mouseClickedin classBasicTool
-
getShape
protected java.awt.Shape getShape()
Description copied from class:IndicatorToolGets the shape for displaying the current state of the action. Subclasses should override.- Overrides:
getShapein classIndicatorTool- Returns:
- null if nothing should be drawn
-
getIndicatorCircle
protected java.awt.Shape getIndicatorCircle(java.awt.geom.Point2D p)
-
-