public static interface EditTransaction.SelectionEditor
Modifier and Type | Method and Description |
---|---|
com.vividsolutions.jts.geom.Geometry |
edit(com.vividsolutions.jts.geom.Geometry geometryWithSelectedItems,
java.util.Collection selectedItems)
selectedItems may have the whole geometry, parts (collection elements),
or linestrings, or a mix of all three.
|
com.vividsolutions.jts.geom.Geometry edit(com.vividsolutions.jts.geom.Geometry geometryWithSelectedItems, java.util.Collection selectedItems)
geometryWithSelectedItems
- a clone of the geometry containing the selected items.
Because geometryWithSelectedItems is a clone, feel free to modify it, as no other
parties reference it. Then return it (or return something totally different).selectedItems
- clones of the selected items (each of which have class Geometry).
selectedItems' elements are "live"; that is, they are objects taken from geometryWithSelectedItems.
So, for example, modifying selectedItem's coordinates will modify geometryWithSelectedItems'
coordinates.