Package jdepend.swingui
Class EfferentNode
- java.lang.Object
-
- jdepend.swingui.PackageNode
-
- jdepend.swingui.EfferentNode
-
public class EfferentNode extends PackageNode
TheEfferentNode
class is aPackageNode
for an efferent Java package and its efferent packages.- Author:
- Mike Clark, Clarkware Consulting, Inc.
-
-
Constructor Summary
Constructors Constructor Description EfferentNode(PackageNode parent, JavaPackage jPackage)
Constructs anEfferentNode
with the specified parent node and efferent Java package.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.protected PackageNode
makeNode(PackageNode parent, JavaPackage jPackage)
Creates and returns aPackageNode
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.-
Methods inherited from class jdepend.swingui.PackageNode
getChildren, getPackage, getParent, isLeaf, toMetricsString
-
-
-
-
Constructor Detail
-
EfferentNode
public EfferentNode(PackageNode parent, JavaPackage jPackage)
Constructs anEfferentNode
with the specified parent node and efferent Java package.- Parameters:
parent
- Parent package node.jPackage
- Efferent Java package.
-
-
Method Detail
-
makeNode
protected PackageNode makeNode(PackageNode parent, JavaPackage jPackage)
Creates and returns aPackageNode
with the specified parent node and Java package.- Specified by:
makeNode
in classPackageNode
- Parameters:
parent
- Parent package node.jPackage
- Java package.- Returns:
- A non-null
PackageNode
-
getCoupledPackages
protected java.util.Collection getCoupledPackages()
Returns the collection of Java packages coupled to the package represented in this node.- Specified by:
getCoupledPackages
in classPackageNode
- 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.
- Overrides:
isChild
in classPackageNode
- Parameters:
jPackage
- Package to test.- Returns:
true
to display the package;false
otherwise.
-
toString
public java.lang.String toString()
Returns the string representation of this node in it's current tree context.- Overrides:
toString
in classPackageNode
- Returns:
- Node label.
-
-