Class SnapVerticesOp
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.cursortool.editing.SnapVerticesOp
-
public class SnapVerticesOp extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringINSERT_VERTICES_IF_NECESSARY_KEY
-
Constructor Summary
Constructors Constructor Description SnapVerticesOp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(org.locationtech.jts.geom.Geometry fence, Collection editableLayers, boolean rollingBackInvalidEdits, LayerViewPanel panel, Task task, org.locationtech.jts.geom.Coordinate suggestedTarget, Feature targetFeature, boolean insertVerticesIfNecessary)org.locationtech.jts.geom.CoordinatepickTarget(org.locationtech.jts.geom.Geometry targetGeometry, org.locationtech.jts.geom.Geometry fence, org.locationtech.jts.geom.Coordinate suggestedTarget)
-
-
-
Field Detail
-
INSERT_VERTICES_IF_NECESSARY_KEY
public static final String INSERT_VERTICES_IF_NECESSARY_KEY
-
-
Method Detail
-
pickTarget
public org.locationtech.jts.geom.Coordinate pickTarget(org.locationtech.jts.geom.Geometry targetGeometry, org.locationtech.jts.geom.Geometry fence, org.locationtech.jts.geom.Coordinate suggestedTarget) throws Exception- Returns:
- null if the geometries have no vertices in the fence
- Throws:
Exception
-
execute
public boolean execute(org.locationtech.jts.geom.Geometry fence, Collection editableLayers, boolean rollingBackInvalidEdits, LayerViewPanel panel, Task task, org.locationtech.jts.geom.Coordinate suggestedTarget, Feature targetFeature, boolean insertVerticesIfNecessary) throws Exception- Parameters:
insertVerticesIfNecessary- whether to insert vertices into editable features with line segments (but not vertices) inside the fence- Throws:
Exception
-
-