Package org.gvsig.fmap.mapcontext.layers
Class LayersIterator
java.lang.Object
org.gvsig.fmap.mapcontext.layers.LayersIterator
- All Implemented Interfaces:
Iterator
Interator for iterate in a Layers tree
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.
- Author:
- jmvivo
-
Constructor Details
-
LayersIterator
public LayersIterator() -
LayersIterator
-
-
Method Details
-
appendLayer
-
remove
public void remove() -
hasNext
public boolean hasNext() -
next
-
nextLayer
Returns the next layer in the iteration.- Returns:
- the next layer in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.- See Also:
-
evaluate
Called before add a layer to the iteration list.- Parameters:
layer- the layer to check- Returns:
- true if the layer will be in the iteration list
-