Package com.pixelmed.scpecg
Class SCPTree
java.lang.Object
com.pixelmed.scpecg.SCPTree
- All Implemented Interfaces:
TreeModel
The SCPTree
class implements a
TreeModel
to abstract the contents of a list of attributes as
a tree in order to provide support for a SCPTreeBrowser
.
For details of some of the methods implemented here see javax.swing.tree.TreeModel
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) getRoot()
boolean
void
toString()
Walk the entire tree and dump as a string.void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
SCPTree
Construct an entire tree of attributes from an SCP-ECG instance.
- Parameters:
scpecg
- an SCP-ECG instance- Throws:
Exception
-
-
Method Details
-
getChild
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
- Parameters:
parent
-child
-
-
getRoot
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
- Parameters:
parent
-
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
- Parameters:
path
-newValue
-
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
- Parameters:
tml
-
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
- Parameters:
tml
-
-
toString
Walk the entire tree and dump as a string.
-