Class SnapVerticesOp
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesOp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(org.locationtech.jts.geom.Geometry fence, Collection<Layer> 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 Details
-
INSERT_VERTICES_IF_NECESSARY_KEY
-
-
Constructor Details
-
SnapVerticesOp
public SnapVerticesOp()
-
-
Method Details
-
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) - Returns:
- null if the geometries have no vertices in the fence
-
execute
public boolean execute(org.locationtech.jts.geom.Geometry fence, Collection<Layer> 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
-