Package com.luciad.view.swing
Class TLcdLayerTreeModel
java.lang.Object
com.luciad.view.swing.TLcdLayerTreeModel
- All Implemented Interfaces:
TreeModel
A TreeModel for a hierarchical layer structure of
ILcdLayerTreeNodes and ILcdLayers, which can be used to visualise the
layer structure using a JTree.
This model also adds a listener to the hierarchical layer structure, and converts all the
TLcdLayeredEvents originating from it into the corresponding TreeModelEvents which are passed to the TreeModelListeners
registered to this model.
- Since:
- 9.0
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdLayerTreeModel(ILcdLayerTreeNode aRootNode) Creates a newTreeModelfor the tree with root nodeaRootNode. -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetChildCount(Object parent) intgetIndexOfChild(Object parent, Object child) getRoot()booleanvoidvoidvalueForPathChanged(TreePath path, Object newValue)
-
Constructor Details
-
TLcdLayerTreeModel
Creates a newTreeModelfor the tree with root nodeaRootNode. Editing this tree model by usingvalueForPathChangedis not supported.- Parameters:
aRootNode- the root node of the tree
-
-
Method Details
-
getRoot
-
getChild
-
getChildCount
- Specified by:
getChildCountin interfaceTreeModel
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChildin interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListenerin interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListenerin interfaceTreeModel
-