|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.geom.GeometryCollectionIterator
public class GeometryCollectionIterator
Iterates over all Geometry
s in a Geometry
,
(which may be either a collection or an atomic geometry).
The iteration sequence follows a pre-order, depth-first traversal of the
structure of the GeometryCollection
(which may be nested). The original Geometry
object is
returned as well (as the first object), as are all sub-collections and atomic elements.
It is simple to ignore the intermediate GeometryCollection
objects if they are not
needed.
Constructor Summary | |
---|---|
GeometryCollectionIterator(Geometry parent)
Constructs an iterator over the given Geometry . |
Method Summary | |
---|---|
boolean |
hasNext()
Tests whether any geometry elements remain to be returned. |
java.lang.Object |
next()
Gets the next geometry in the iteration sequence. |
void |
remove()
Removal is not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryCollectionIterator(Geometry parent)
Geometry
.
parent
- the geometry over which to iterate; also, the first
element returned by the iterator.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- This method is not implemented.
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |