Interface LayerManager
-
- All Superinterfaces:
javax.swing.Action
,java.awt.event.ActionListener
,java.util.EventListener
,Feature
,Initializable
,java.beans.PropertyChangeListener
- All Known Implementing Classes:
LayerManagerPanel
public interface LayerManager extends Feature
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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(java.lang.String groupName)
Expands the display of the group so that all layers are visibly listed.void
expandPath(LayerPath path)
Layer
findLayerByTitle(java.lang.String layerTitle, java.lang.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 javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
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
-
-
-
-
Method Detail
-
findLayerByTitle
Layer findLayerByTitle(java.lang.String layerTitle, java.lang.String groupTitle)
-
addGroup
void addGroup(LayerPath pathToGroup)
-
removeLayer
void removeLayer(Layer layer)
-
redraw
void redraw()
-
scrollToLayer
void scrollToLayer(Layer layer)
-
selectLayer
void selectLayer(Layer layer, boolean tf)
-
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.
-
removeLayers
void removeLayers(LayerList layerList)
-
removeLayer
void removeLayer(LayerPath path)
-
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.
-
expandGroup
void expandGroup(java.lang.String groupName)
Expands the display of the group so that all layers are visibly listed.- Parameters:
groupName
- the name of the group.
-
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.
-
containsPath
boolean containsPath(LayerPath pathToGroup)
-
expandPath
void expandPath(LayerPath path)
-
-