jdepend.swingui

Class DependTree

Implemented Interfaces:
TreeSelectionListener

public class DependTree
extends JPanel
implements TreeSelectionListener

The DependTree class defines the graphical tree for displaying the packages and their hierarchical dependencies.
Authors:
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

void
addTreeSelectionListener(TreeSelectionListener l)
Registers the specified listener with this tree.
DependTreeModel
getModel()
Returns the tree model.
void
setModel(DependTreeModel model)
Sets the tree model.
void
valueChanged(TreeSelectionEvent te)
Callback method triggered whenever the value of the tree selection changes.

Constructor Details

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 Details

addTreeSelectionListener

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

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.