|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jts.geom.GeometryCollectionIterator
Iterates over all Geometrys in a GeometryCollection.
. Implements a pre-order depth-first traversal of the GeometryCollection
(which may be nested). The original GeometryCollection is
returned as well (as the first object), as are all sub-collections. It is
simple to ignore the GeometryCollection objects if they are not
needed.
| Constructor Summary | |
GeometryCollectionIterator(Geometry parent)
Constructs an iterator over the given GeometryCollection. |
|
| Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
Not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeometryCollectionIterator(Geometry parent)
GeometryCollection.
parent - the collection over which to iterate; also, the first
element returned by the iterator.| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - This method is not implemented.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||