NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.util
Class LayerTree

java.lang.Object
  extended by gov.nasa.worldwindx.applications.worldwindow.util.LayerTree
All Implemented Interfaces:
Iterable<Layer>
Direct Known Subclasses:
WMSLayerTree

public abstract class LayerTree
extends Object
implements Iterable<Layer>


Field Summary
protected  List<LayerTree> children
           
protected  Controller controller
           
protected  LayerList layers
           
protected  String name
           
 
Constructor Summary
LayerTree(Controller controller)
           
LayerTree(LayerList root)
           
 
Method Summary
abstract  void createLayers(Object infoItem, AVList params)
           
 Object getChild(String name)
           
 List<LayerTree> getChildren()
           
 String getDisplayName()
           
 Layer getLayer(List<String> path)
           
 LayerList getLayers()
           
 Iterator<LayerPath> getPathIterator(LayerPath basePath)
           
 boolean hasChildren()
           
 boolean hasLayers()
           
 Iterator<Layer> iterator()
           
 void setChildren(List<LayerTree> children)
           
 void setDisplayName(String name)
           
 void setLayers(LayerList layerList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected List<LayerTree> children

controller

protected Controller controller

layers

protected LayerList layers

name

protected String name
Constructor Detail

LayerTree

public LayerTree(Controller controller)

LayerTree

public LayerTree(LayerList root)
Method Detail

createLayers

public abstract void createLayers(Object infoItem,
                                  AVList params)

getChild

public Object getChild(String name)

getChildren

public List<LayerTree> getChildren()

getDisplayName

public String getDisplayName()

getLayer

public Layer getLayer(List<String> path)

getLayers

public LayerList getLayers()

getPathIterator

public Iterator<LayerPath> getPathIterator(LayerPath basePath)

hasChildren

public boolean hasChildren()

hasLayers

public boolean hasLayers()

iterator

public Iterator<Layer> iterator()
Specified by:
iterator in interface Iterable<Layer>

setChildren

public void setChildren(List<LayerTree> children)

setDisplayName

public void setDisplayName(String name)

setLayers

public void setLayers(LayerList layerList)

NASA World Wind