public class LayerTreeModel
extends javax.swing.tree.DefaultTreeModel
Constructor and Description |
---|
LayerTreeModel() |
LayerTreeModel(LayerList layerList) |
Modifier and Type | Method and Description |
---|---|
LayerTreeNode |
find(LayerNode layerNodeRequested) |
LayerTreeNode |
findByTitle(java.lang.String title) |
LayerTreeNode |
findByTitle(java.lang.String title,
LayerTreeNode groupNode) |
LayerTreeNode |
findByTitle(java.lang.String layerTitle,
java.lang.String groupTitle) |
LayerTreeNode |
findChild(java.lang.String childName,
LayerTreeNode parent) |
LayerTreeNode |
findLayer(Layer layer,
LayerTreeGroupNode groupNode) |
java.util.List<LayerTreeNode> |
findLayerInstances(Layer layer,
LayerTreeGroupNode groupNode) |
LayerTreeGroupNode |
getDefaultGroupNode() |
LayerTreeNode |
getLastNode(LayerPath path) |
LayerTreeGroupNode |
getRootNode() |
boolean |
isIncludeInternalLayers() |
static boolean |
isInternalLayer(Layer layer) |
protected LayerTreeGroupNode |
makeGroup(LayerList layerList) |
void |
refresh(LayerList layerList)
Synchronize the layer tree with the state of the specified layer list.
|
void |
removeNode(java.lang.Object o) |
void |
selectLayer(Layer layer,
boolean tf) |
void |
setIncludeInternalLayers(boolean includeInternalLayers) |
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
public LayerTreeModel()
public LayerTreeModel(LayerList layerList)
public LayerTreeNode find(LayerNode layerNodeRequested)
public LayerTreeNode findByTitle(java.lang.String title)
public LayerTreeNode findByTitle(java.lang.String title, LayerTreeNode groupNode)
public LayerTreeNode findByTitle(java.lang.String layerTitle, java.lang.String groupTitle)
public LayerTreeNode findChild(java.lang.String childName, LayerTreeNode parent)
public LayerTreeNode findLayer(Layer layer, LayerTreeGroupNode groupNode)
public java.util.List<LayerTreeNode> findLayerInstances(Layer layer, LayerTreeGroupNode groupNode)
public LayerTreeGroupNode getDefaultGroupNode()
public LayerTreeNode getLastNode(LayerPath path)
public LayerTreeGroupNode getRootNode()
public boolean isIncludeInternalLayers()
public static boolean isInternalLayer(Layer layer)
protected LayerTreeGroupNode makeGroup(LayerList layerList)
public void refresh(LayerList layerList)
removeNode(Object)
for that.layerList
- the layerlist to synchronize with, typically the active layer list of the WorldWindow.public void removeNode(java.lang.Object o)
public void selectLayer(Layer layer, boolean tf)
public void setIncludeInternalLayers(boolean includeInternalLayers)