Class DependTree

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TreeSelectionListener

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, Clarkware Consulting, Inc.
See Also:
  • 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

    • setModel

      public void setModel(DependTreeModel model)
      Sets the tree model.
      Parameters:
      model - Tree model.
    • getModel

      public DependTreeModel getModel()
      Returns the tree model.
      Returns:
      Tree model.
    • addTreeSelectionListener

      public void addTreeSelectionListener(TreeSelectionListener l)
      Registers the specified listener with this tree.
      Parameters:
      l - Tree selection listener.
    • valueChanged

      public void valueChanged(TreeSelectionEvent te)
      Callback method triggered whenever the value of the tree selection changes.
      Specified by:
      valueChanged in interface TreeSelectionListener
      Parameters:
      te - Event that characterizes the change.