public interface LayerManager extends Feature
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier and Type | Method and 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(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) |
getFeatureID, getName, isOn, isTwoState, turnOn
initialize, isInitialized
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
propertyChange
void addGroup(LayerPath pathToGroup)
boolean containsPath(LayerPath pathToGroup)
void enableGroupSelection(LayerPath path, boolean tf)
path
- the path to the group.tf
- true if group selection should be allowed, false if group selection should not be allowed.void expandGroup(String groupName)
groupName
- the name of the group.void expandPath(LayerPath path)
LayerPath getDefaultGroupPath()
Layer getLayerFromPath(LayerPath path)
path
- the path to the layer.void redraw()
void removeLayer(Layer layer)
void removeLayer(LayerPath path)
void removeLayers(LayerList layerList)
void scrollToLayer(Layer layer)
void selectLayer(Layer layer, boolean tf)