jdepend.swingui
Class PackageNode
java.lang.Object
jdepend.swingui.PackageNode
public abstract class PackageNode
extends java.lang.Object
The PackageNode
class defines the default behavior for tree
nodes representing Java packages.
- Mike Clark
- Clarkware Consulting, Inc.
ArrayList | getChildren() - Returns the child package nodes of this node.
|
protected Collection | getCoupledPackages() - Returns the collection of Java packages coupled to the package
represented in this node.
|
JavaPackage | getPackage() - Returns the Java package represented in this node.
|
PackageNode | getParent() - Returns the parent of this package node.
|
boolean | isChild(JavaPackage jPackage) - Indicates whether the specified package should be displayed as a child of
this node.
|
boolean | isLeaf() - Indicates whether this node is a leaf node.
|
protected PackageNode | makeNode(PackageNode parent, JavaPackage jPackage) - Creates and returns a
PackageNode with the specified
parent node and Java package.
|
String | toMetricsString() - Returns the string representation of this node's metrics.
|
String | toString() - Returns the string representation of this node in it's current tree
context.
|
PackageNode
public PackageNode(PackageNode parent,
JavaPackage jPackage)
Constructs a PackageNode
with the specified package and
its collection of dependent packages.
parent
- Parent package node.jPackage
- Java package.
getChildren
public ArrayList getChildren()
Returns the child package nodes of this node.
- Collection of child package nodes.
getCoupledPackages
protected Collection getCoupledPackages()
Returns the collection of Java packages coupled to the package
represented in this node.
- Collection of coupled packages.
getPackage
public JavaPackage getPackage()
Returns the Java package represented in this node.
- Java package.
getParent
public PackageNode getParent()
Returns the parent of this package node.
- Parent package node.
isChild
public boolean isChild(JavaPackage jPackage)
Indicates whether the specified package should be displayed as a child of
this node.
jPackage
- Package to test.
true
to display the package; false
otherwise.
isLeaf
public boolean isLeaf()
Indicates whether this node is a leaf node.
true
if this node is a leaf; false
otherwise.
makeNode
protected PackageNode makeNode(PackageNode parent,
JavaPackage jPackage)
Creates and returns a PackageNode
with the specified
parent node and Java package.
parent
- Parent package node.jPackage
- Java package.
- A non-null
PackageNode
toMetricsString
public String toMetricsString()
Returns the string representation of this node's metrics.
- Metrics string.
toString
public String toString()
Returns the string representation of this node in it's current tree
context.
- Node label.
Copyright B) 1999-2005 Clarkware Consulting, Inc.