jdepend.swingui
public abstract class PackageNode extends Object
PackageNode class defines the default behavior for tree
nodes representing Java packages.
| Constructor Summary | |
|---|---|
| PackageNode(PackageNode parent, JavaPackage jPackage)
Constructs a PackageNode with the specified package and
its collection of dependent packages.
| |
| Method Summary | |
|---|---|
| ArrayList | getChildren()
Returns the child package nodes of this node.
|
| protected abstract 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 abstract 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 with the specified package and
its collection of dependent packages.
Parameters: parent Parent package node. jPackage Java package.
Returns: Collection of child package nodes.
Returns: Collection of coupled packages.
Returns: Java package.
Returns: Parent package node.
Parameters: jPackage Package to test.
Returns: true to display the package; false
otherwise.
Returns: true if this node is a leaf; false
otherwise.
PackageNode with the specified
parent node and Java package.
Parameters: parent Parent package node. jPackage Java package.
Returns: A non-null PackageNode
Returns: Metrics string.
Returns: Node label.