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 TypeMethodDescriptionvoidintgetChildCount(Object parent) intgetIndexOfChild(Object parent, Object child) getRoot()booleanvoidtoString()Walk the entire tree and dump as a string.voidvalueForPathChanged(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:
getIndexOfChildin interfaceTreeModel- Parameters:
parent-child-
-
getRoot
-
getChildCount
- Specified by:
getChildCountin interfaceTreeModel- Parameters:
parent-
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChangedin interfaceTreeModel- Parameters:
path-newValue-
-
addTreeModelListener
- Specified by:
addTreeModelListenerin interfaceTreeModel- Parameters:
tml-
-
removeTreeModelListener
- Specified by:
removeTreeModelListenerin interfaceTreeModel- Parameters:
tml-
-
toString
Walk the entire tree and dump as a string.
-