| java.lang.Object com.vividsolutions.jump.workbench.ui.GeometryEditor
GeometryEditor | public class GeometryEditor (Code) | | Geometry objects are unmodifiable; this class allows you to "modify" a Geometry
in a sense -- the modified Geometry is returned as a new Geometry.
The new Geometry's #isValid should be checked.
|
Inner Class :public interface GeometryEditorOperation | |
Method Summary | |
public boolean | containsReference(Collection collection, Object o) | public Geometry | deleteVertices(Geometry geometry, Collection vertices) Deletes the given vertices (matched using ==, not #equals). | public Geometry | edit(Geometry geometry, GeometryEditorOperation operation) | public Geometry | insertVertex(Geometry geometry, Coordinate target, Geometry ignoreSegmentsOutside) The vertex will be inserted at the point closest to the target. | public Geometry | insertVertex(Geometry geometry, Coordinate existing1, Coordinate existing2, Coordinate v) | public Geometry | remove(Geometry g, Geometry itemToRemove) | public Geometry | removeRepeatedPoints(Geometry geometry) The input and output Geometries may share some Coordinate arrays. |
GeometryEditor | public GeometryEditor()(Code) | | |
deleteVertices | public Geometry deleteVertices(Geometry geometry, Collection vertices)(Code) | | Deletes the given vertices (matched using ==, not #equals).
|
edit | public Geometry edit(Geometry geometry, GeometryEditorOperation operation)(Code) | | |
insertVertex | public Geometry insertVertex(Geometry geometry, Coordinate target, Geometry ignoreSegmentsOutside)(Code) | | The vertex will be inserted at the point closest to the target.
|
insertVertex | public Geometry insertVertex(Geometry geometry, Coordinate existing1, Coordinate existing2, Coordinate v)(Code) | | Inserts v on the line segment with endpoints equal to existing1 and existing2
|
remove | public Geometry remove(Geometry g, Geometry itemToRemove)(Code) | | null if parent == itemToRemove |
removeRepeatedPoints | public Geometry removeRepeatedPoints(Geometry geometry)(Code) | | The input and output Geometries may share some Coordinate arrays.
|
|
|