jdepend.swingui

Class DependTree

public class DependTree extends JPanel implements TreeSelectionListener

The DependTree class defines the graphical tree for displaying the packages and their hierarchical dependencies.

Author: Mike Clark (mike@clarkware.com) Clarkware Consulting, Inc.

Constructor Summary
DependTree()
Constructs a DependTree with an empty tree model.
DependTree(DependTreeModel model)
Constructs a DependTree with the specified tree model.
Method Summary
voidaddTreeSelectionListener(TreeSelectionListener l)
Registers the specified listener with this tree.
DependTreeModelgetModel()
Returns the tree model.
voidsetModel(DependTreeModel model)
Sets the tree model.
voidvalueChanged(TreeSelectionEvent te)
Callback method triggered whenever the value of the tree selection changes.

Constructor Detail

DependTree

public DependTree()
Constructs a DependTree with an empty tree model.

DependTree

public DependTree(DependTreeModel model)
Constructs a DependTree with the specified tree model.

Parameters: model Depend tree model.

Method Detail

addTreeSelectionListener

public void addTreeSelectionListener(TreeSelectionListener l)
Registers the specified listener with this tree.

Parameters: listener Tree selection listener.

getModel

public DependTreeModel getModel()
Returns the tree model.

Returns: Tree model.

setModel

public void setModel(DependTreeModel model)
Sets the tree model.

Parameters: model Tree model.

valueChanged

public void valueChanged(TreeSelectionEvent te)
Callback method triggered whenever the value of the tree selection changes.

Parameters: te Event that characterizes the change.

Copyright B) 1999-2003 Clarkware Consulting, Inc.