public class LayersIterator extends Object implements Iterator
Extend this class to create an expecific layer iterator
and override the method evaluate
for check
if a layer will be in the iteration list.
Constructor and Description |
---|
LayersIterator() |
LayersIterator(FLayer layer) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendLayer(FLayer layer) |
boolean |
evaluate(FLayer layer)
Called before add a layer to the iteration
list.
|
boolean |
hasNext() |
Object |
next() |
FLayer |
nextLayer()
Returns the next layer in the iteration.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public LayersIterator()
public LayersIterator(FLayer layer)
protected void appendLayer(FLayer layer)
public FLayer nextLayer()
NoSuchElementException
- iteration has no more elements.next()
public boolean evaluate(FLayer layer)
layer
- the layer to check