com.vividsolutions.jump.workbench.ui.cursortool.editing
Class SnapVerticesOp

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.cursortool.editing.SnapVerticesOp

public class SnapVerticesOp
extends java.lang.Object


Field Summary
static java.lang.String INSERT_VERTICES_IF_NECESSARY_KEY
           
 
Constructor Summary
SnapVerticesOp()
           
 
Method Summary
 boolean execute(com.vividsolutions.jts.geom.Geometry fence, java.util.Collection editableLayers, boolean rollingBackInvalidEdits, LayerViewPanel panel, Task task, com.vividsolutions.jts.geom.Coordinate suggestedTarget, Feature targetFeature, boolean insertVerticesIfNecessary)
           
 com.vividsolutions.jts.geom.Coordinate pickTarget(com.vividsolutions.jts.geom.Geometry targetGeometry, com.vividsolutions.jts.geom.Geometry fence, com.vividsolutions.jts.geom.Coordinate suggestedTarget)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSERT_VERTICES_IF_NECESSARY_KEY

public static final java.lang.String INSERT_VERTICES_IF_NECESSARY_KEY
Constructor Detail

SnapVerticesOp

public SnapVerticesOp()
Method Detail

pickTarget

public com.vividsolutions.jts.geom.Coordinate pickTarget(com.vividsolutions.jts.geom.Geometry targetGeometry,
                                                         com.vividsolutions.jts.geom.Geometry fence,
                                                         com.vividsolutions.jts.geom.Coordinate suggestedTarget)
                                                  throws java.lang.Exception
Returns:
null if the geometries have no vertices in the fence
Throws:
java.lang.Exception

execute

public boolean execute(com.vividsolutions.jts.geom.Geometry fence,
                       java.util.Collection editableLayers,
                       boolean rollingBackInvalidEdits,
                       LayerViewPanel panel,
                       Task task,
                       com.vividsolutions.jts.geom.Coordinate suggestedTarget,
                       Feature targetFeature,
                       boolean insertVerticesIfNecessary)
                throws java.lang.Exception
Parameters:
insertVerticesIfNecessary - whether to insert vertices into editable features with line segments (but not vertices) inside the fence
Throws:
java.lang.Exception