NASA World Wind

gov.nasa.worldwindx.applications.worldwindow.core.layermanager
Interface LayerManager

All Superinterfaces:
Action, ActionListener, EventListener, Feature, Initializable, PropertyChangeListener
All Known Implementing Classes:
LayerManagerPanel

public interface LayerManager
extends Feature


Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Method Summary
 void addGroup(LayerPath pathToGroup)
           
 void addLayer(Layer layer, LayerPath pathToParent)
           
 boolean containsPath(LayerPath pathToGroup)
           
 void enableGroupSelection(LayerPath path, boolean tf)
          Enables or disables the ability to select a group as a whole and therby enable or disable all layers in that group.
 void expandGroup(String groupName)
          Expands the display of the group so that all layers are visibly listed.
 void expandPath(LayerPath path)
           
 Layer findLayerByTitle(String layerTitle, String groupTitle)
           
 LayerPath getDefaultGroupPath()
          Returns a path to the group node of the default layer group, which is the group holding the base layers.
 Layer getLayerFromPath(LayerPath path)
          Returns the layer at the end of a specified path.
 LayerNode getNode(LayerPath path)
           
 void redraw()
           
 void removeLayer(Layer layer)
           
 void removeLayer(LayerPath path)
           
 void removeLayers(LayerList layerList)
           
 void scrollToLayer(Layer layer)
           
 void selectLayer(Layer layer, boolean tf)
           
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.features.Feature
getFeatureID, getName, isOn, isTwoState, turnOn
 
Methods inherited from interface gov.nasa.worldwindx.applications.worldwindow.core.Initializable
initialize, isInitialized
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

addGroup

void addGroup(LayerPath pathToGroup)

addLayer

void addLayer(Layer layer,
              LayerPath pathToParent)

containsPath

boolean containsPath(LayerPath pathToGroup)

enableGroupSelection

void enableGroupSelection(LayerPath path,
                          boolean tf)
Enables or disables the ability to select a group as a whole and therby enable or disable all layers in that group. For some layer groups, such as the base group, it's not appropriate to turn them all on or all off.

Parameters:
path - the path to the group.
tf - true if group selection should be allowed, false if group selection should not be allowed.

expandGroup

void expandGroup(String groupName)
Expands the display of the group so that all layers are visibly listed.

Parameters:
groupName - the name of the group.

expandPath

void expandPath(LayerPath path)

findLayerByTitle

Layer findLayerByTitle(String layerTitle,
                       String groupTitle)

getDefaultGroupPath

LayerPath getDefaultGroupPath()
Returns a path to the group node of the default layer group, which is the group holding the base layers.

Returns:
a path to the default group node.

getLayerFromPath

Layer getLayerFromPath(LayerPath path)
Returns the layer at the end of a specified path.

Parameters:
path - the path to the layer.
Returns:
the layer at the end of the path, or null if no layer is there.

getNode

LayerNode getNode(LayerPath path)

redraw

void redraw()

removeLayer

void removeLayer(Layer layer)

removeLayer

void removeLayer(LayerPath path)

removeLayers

void removeLayers(LayerList layerList)

scrollToLayer

void scrollToLayer(Layer layer)

selectLayer

void selectLayer(Layer layer,
                 boolean tf)

NASA World Wind