net.sf.jlayercheck.util.modeltree
Class DependenciesTreeModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by net.sf.jlayercheck.util.modeltree.DependenciesTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class DependenciesTreeModel
extends DefaultTreeModel

Generates a tree model for the dependencies of a single ClassNode.

Author:
webmaster@earth3d.org
See Also:
Serialized Form

Field Summary
protected static String UNASSIGNED
           
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
DependenciesTreeModel()
          Generates an empty dependency representation model.
 
Method Summary
 void addClassNodeToDependentModelTree(DependentModelTree depTree, ClassDependency cd, ClassNode depClass)
          Adds the given ClassNode to the given DependentModelTree.
 void merge(DependentModelTree depTree)
          Merges the other tree into this tree.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNASSIGNED

protected static final String UNASSIGNED
See Also:
Constant Field Values
Constructor Detail

DependenciesTreeModel

public DependenciesTreeModel()
Generates an empty dependency representation model.

Method Detail

addClassNodeToDependentModelTree

public void addClassNodeToDependentModelTree(DependentModelTree depTree,
                                             ClassDependency cd,
                                             ClassNode depClass)
Adds the given ClassNode to the given DependentModelTree.

Parameters:
depTree - the tree to update
cd - the dependency to add
depClass - the node that has the dependency to add and is used to retrieve the package and model node

merge

public void merge(DependentModelTree depTree)
Merges the other tree into this tree.

Parameters:
dependenciesTreeModel -


Copyright © 2007. All Rights Reserved.