Class LayerTreeModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.tree.TreeModel

    public class LayerTreeModel
    extends javax.swing.tree.DefaultTreeModel
    See Also:
    Serialized Form
    • Constructor Detail

      • LayerTreeModel

        public LayerTreeModel()
      • LayerTreeModel

        public LayerTreeModel​(LayerList layerList)
    • Method Detail

      • isIncludeInternalLayers

        public boolean isIncludeInternalLayers()
      • isInternalLayer

        public static boolean isInternalLayer​(Layer layer)
      • setIncludeInternalLayers

        public void setIncludeInternalLayers​(boolean includeInternalLayers)
      • selectLayer

        public void selectLayer​(Layer layer,
                                boolean tf)
      • refresh

        public void refresh​(LayerList layerList)
        Synchronize the layer tree with the state of the specified layer list. This method adds layers from the list that aren't already in the tree, and removes layers from the tree if they are labeled internal. It does not remove other layers in the model but missing from the specified layer list. Use removeNode(Object) for that.
        Parameters:
        layerList - the layerlist to synchronize with, typically the active layer list of the WorldWindow.
      • removeNode

        public void removeNode​(java.lang.Object o)
      • findByTitle

        public LayerTreeNode findByTitle​(java.lang.String title)
      • findByTitle

        public LayerTreeNode findByTitle​(java.lang.String layerTitle,
                                         java.lang.String groupTitle)