public class SCPTree extends Object implements 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.
SCPTreeBrowser,
SCPTreeRecord| Constructor and Description |
|---|
SCPTree(SCPECG scpecg)
Construct an entire tree of attributes from an SCP-ECG instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener tml) |
Object |
getChild(Object node,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
boolean |
isLeaf(Object node) |
void |
removeTreeModelListener(TreeModelListener tml) |
String |
toString()
Walk the entire tree and dump as a string.
|
void |
valueForPathChanged(TreePath path,
Object newValue) |
public void addTreeModelListener(TreeModelListener tml)
addTreeModelListener in interface TreeModeltml - public int getChildCount(Object parent)
getChildCount in interface TreeModelparent - public int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelparent - child - public boolean isLeaf(Object node)
public void removeTreeModelListener(TreeModelListener tml)
removeTreeModelListener in interface TreeModeltml - public String toString()
Walk the entire tree and dump as a string.
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpath - newValue -