|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjdepend.swingui.PackageNode
public abstract class PackageNode
The 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 | |
|---|---|
java.util.ArrayList |
getChildren()
Returns the child package nodes of this node. |
protected abstract java.util.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. |
java.lang.String |
toMetricsString()
Returns the string representation of this node's metrics. |
java.lang.String |
toString()
Returns the string representation of this node in it's current tree context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PackageNode(PackageNode parent,
JavaPackage jPackage)
PackageNode with the specified package and
its collection of dependent packages.
parent - Parent package node.jPackage - Java package.| Method Detail |
|---|
public JavaPackage getPackage()
public PackageNode getParent()
public boolean isLeaf()
true if this node is a leaf; false
otherwise.
protected abstract PackageNode makeNode(PackageNode parent,
JavaPackage jPackage)
PackageNode with the specified
parent node and Java package.
parent - Parent package node.jPackage - Java package.
PackageNode
protected abstract java.util.Collection getCoupledPackages()
public boolean isChild(JavaPackage jPackage)
jPackage - Package to test.
true to display the package; false
otherwise.public java.util.ArrayList getChildren()
public java.lang.String toMetricsString()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||