public class LayersIterator
extends java.lang.Object
implements java.util.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() |
java.lang.Object |
next() |
FLayer |
nextLayer()
Returns the next layer in the iteration.
|
void |
remove() |
public LayersIterator()
public LayersIterator(FLayer layer)
protected void appendLayer(FLayer layer)
public boolean evaluate(FLayer layer)
layer
- the layer to checkpublic boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public FLayer nextLayer()
java.util.NoSuchElementException
- iteration has no more elements.next()
public void remove()
remove
in interface java.util.Iterator
Copyright © 2013 gvSIG Association. All rights reserved.