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:
KeyListener,MouseListener,MouseMotionListener,MouseWheelListener,EventListener,Tool
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Coordinate[](package private) Coordinateprivate static final doubleprivate static EditVertexToolprivate Coordinate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Shapestatic EditVertexToolprotected ShapegetShape()Gets the shape for displaying the current state of the action.voidvoidvoidvoidMethods inherited from class org.locationtech.jtstest.testbuilder.ui.tools.IndicatorTool
clearIndicator, isIndicatorVisible, mouseMoved, redrawIndicatorMethods 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 Details
-
instance
-
currentVertexLoc
Coordinate currentVertexLoc -
selectedVertexLocation
-
adjVertices
-
IND_CIRCLE_RADIUS
private static final double IND_CIRCLE_RADIUS- See Also:
-
-
Constructor Details
-
EditVertexTool
private EditVertexTool()
-
-
Method Details
-
getInstance
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classBasicTool
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classBasicTool
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classIndicatorTool
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener- Overrides:
mouseClickedin classBasicTool
-
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
-