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
ILcdLayerTreeNode
s and ILcdLayer
s, 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
TLcdLayeredEvent
s originating from it into the corresponding TreeModelEvent
s which are passed to the TreeModelListener
s
registered to this model.
- Since:
- 9.0
-
Constructor Summary
ConstructorDescriptionTLcdLayerTreeModel
(ILcdLayerTreeNode aRootNode) Creates a newTreeModel
for the tree with root nodeaRootNode
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
void
void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
TLcdLayerTreeModel
Creates a newTreeModel
for the tree with root nodeaRootNode
. Editing this tree model by usingvalueForPathChanged
is not supported.- Parameters:
aRootNode
- the root node of the tree
-
-
Method Details
-
getRoot
-
getChild
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-