⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
jdepend.swingui

Class EfferentNode

java.lang.Object
|
+--jdepend.swingui.PackageNode
   |
   +--jdepend.swingui.EfferentNode


public class EfferentNode
extends PackageNode

The EfferentNode class is a PackageNode for an efferent Java package and its efferent packages.
Authors:
(mike@clarkware.com)
Clarkware Consulting, Inc.

Constructor Summary

EfferentNode(PackageNode parent, JavaPackage jPackage)

Constructs an EfferentNode with the specified parent node and efferent Java package.

Method Summary

java.util.Collection

getCoupledPackages()

Returns the collection of Java packages coupled to the package represented in this node.

boolean

isChild(JavaPackage jPackage)

Indicates whether the specified package should be displayed as a child of this node.

PackageNode

makeNode(PackageNode parent, JavaPackage jPackage)

Creates and returns a PackageNode with the specified parent node and Java package.

java.lang.String

toString()

Returns the string representation of this node in it's current tree context.

Constructor Details

EfferentNode

public EfferentNode(PackageNode parent, JavaPackage jPackage)

Constructs an EfferentNode with the specified parent node and efferent Java package.

Parameters:
parent - Parent package node.
jPackage - Efferent Java package.

Method Details

getCoupledPackages

protected Collection getCoupledPackages()

Returns the collection of Java packages coupled to the package represented in this node.

Returns:
Collection of coupled packages.

isChild

public boolean isChild(JavaPackage jPackage)

Indicates whether the specified package should be displayed as a child of this node.

Efferent packages without classes are never shown at the root level to exclude non-analyzed packages.

Parameters:
jPackage - Package to test.
Returns:
true to display the package; false otherwise.

makeNode

protected PackageNode makeNode(PackageNode parent, JavaPackage jPackage)

Creates and returns a PackageNode with the specified parent node and Java package.

Parameters:
parent - Parent package node.
jPackage - Java package.
Returns:
A non-null PackageNode

toString

public String toString()

Returns the string representation of this node in it's current tree context.

Returns:
Node label.