java.lang.Object | +--jdepend.swingui.DependTreeModelAll Implemented Interfaces:
DependTreeModel(PackageNode root) Constructs a DependTreeModel with the specified root package node. |
void | addTreeModelListener(TreeModelListener l) Adds a listener for the TreeModelEvent posted after the tree changes. |
java.lang.Object | getChild(java.lang.Object parent, int index) Returns the child of the specified parent at the specified index in the parent's child collection. |
int | getChildCount(java.lang.Object parent) Returns the number of children for the specified parent. |
int | getIndexOfChild(java.lang.Object parent, java.lang.Object child) Returns the index of the specified child within the specified parent. |
java.lang.Object | getRoot() Returns the root of the tree. |
boolean | isLeaf(java.lang.Object o) Determines whether the specified tree node is a leaf node. |
void | removeTreeModelListener(TreeModelListener l) Removes a listener for TreeModelEvents. |
void | valueForPathChanged(TreePath path, java.lang.Object newValue) Callback method triggered when the value for the item specified by path has changed to newValue. |
public DependTreeModel(PackageNode root)
DependTreeModel
with
the specified root package node.
public void addTreeModelListener(TreeModelListener l)
TreeModelEvent
posted after the tree changes.
public Object getChild(java.lang.Object parent, int index)
public int getChildCount(java.lang.Object parent)
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
public Object getRoot()
public boolean isLeaf(java.lang.Object o)
public void removeTreeModelListener(TreeModelListener l)
TreeModelEvent
s.
public void valueForPathChanged(TreePath path, java.lang.Object newValue)
DependTreeModel
class defines the data model being observed by aDependTree
instance.