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
| 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 |
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)