Class SnapVerticesTool
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.SpecifyFeaturesTool
-
- org.locationtech.jts.jump.workbench.ui.cursortool.editing.SnapVerticesTool
-
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener,CursorTool
public class SnapVerticesTool extends SpecifyFeaturesTool
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
AbstractCursorTool.Listener
-
-
Field Summary
-
Fields inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
DEFAULT_VIEW_CLICK_BUFFER, modelDestination, modelSource
-
-
Constructor Summary
Constructors Constructor Description SnapVerticesTool(EnableCheckFactory checkFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgestureFinished()protected org.locationtech.jts.geom.EnvelopegetBoxInModelCoordinates()CursorgetCursor()IcongetIcon()protected ShapegetShape()protected voidsnapVertices(Collection editableLayers, org.locationtech.jts.geom.Coordinate suggestedTarget, Feature targetFeature)-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.SpecifyFeaturesTool
candidateLayersIterator, layerToSpecifiedFeaturesMap, layerToSpecifiedFeaturesMap, mouseClicked, specifiedFeatures, specifiedFeatures
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.DragTool
getModelDestination, getModelSource, getShape, getViewDestination, getViewSource, modelClickBuffer, mouseDragged, mousePressed, mouseReleased, setModelDestination, setModelSource, setViewClickBuffer, setViewDestination, setViewSource, wasClick
-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.cursortool.AbstractCursorTool
activate, add, allowSnapping, cancelGesture, check, cleanup, clearShape, createCursor, createCursor, createStandardSnappingPolicies, deactivate, drawShapeXOR, drawShapeXOR, execute, fireGestureFinished, getColor, getName, getPanel, getSnapManager, getTaskFrame, getWorkbench, isGestureInProgress, isRightMouseButtonUsed, isRollingBackInvalidEdits, isShapeOnScreen, mouseEntered, mouseExited, mouseMoved, name, redrawShape, reportNothingToUndoYet, setColor, setFilling, setStroke, setStrokeWidth, setup, snap, snap, toString, wasControlPressed, wasShiftPressed, workbench, workbenchFrame
-
-
-
-
Constructor Detail
-
SnapVerticesTool
public SnapVerticesTool(EnableCheckFactory checkFactory)
-
-
Method Detail
-
gestureFinished
protected void gestureFinished() throws Exception- Specified by:
gestureFinishedin classAbstractCursorTool- Throws:
Exception
-
snapVertices
protected void snapVertices(Collection editableLayers, org.locationtech.jts.geom.Coordinate suggestedTarget, Feature targetFeature) throws Exception, NoninvertibleTransformException
-
getIcon
public Icon getIcon()
- Returns:
- null to use a default icon
-
getCursor
public Cursor getCursor()
- Specified by:
getCursorin interfaceCursorTool- Overrides:
getCursorin classAbstractCursorTool
-
getBoxInModelCoordinates
protected org.locationtech.jts.geom.Envelope getBoxInModelCoordinates() throws NoninvertibleTransformException- Overrides:
getBoxInModelCoordinatesin classDragTool- Throws:
NoninvertibleTransformException
-
-