Class InsertVertexTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.MultiClickTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.NClickTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.editing.InsertVertexTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
public class InsertVertexTool extends NClickTool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classInsertVertexTool.SegmentContext-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Constructor Summary
Constructors Constructor Description InsertVertexTool(EnableCheckFactory checkFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()protected voidgestureFinished(org.locationtech.jts.geom.Geometry newGeometry, org.locationtech.jts.geom.Coordinate newVertex, InsertVertexTool.SegmentContext segment)CursorgetCursor()IcongetIcon()-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.NClickTool
getModelDestination, getModelSource, isFinishingRelease
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.MultiClickTool
add, cancelGesture, finishGesture, getCoordinates, getShape, mouseDragged, mouseLocationChanged, mouseMoved, mousePressed, mouseReleased, toArray
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseClicked, mouseEntered, mouseExited, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
-
-
-
-
Constructor Detail
-
InsertVertexTool
public InsertVertexTool(EnableCheckFactory checkFactory)
-
-
Method Detail
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
gestureFinished
protected void gestureFinished(org.locationtech.jts.geom.Geometry newGeometry, org.locationtech.jts.geom.Coordinate newVertex, InsertVertexTool.SegmentContext segment)
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
-