Package adams.gui.goe.classtree
Class ClassNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- adams.gui.core.BaseTreeNode
-
- adams.gui.core.dotnotationtree.DotNotationNode
-
- adams.gui.goe.classtree.ClassNode
-
- All Implemented Interfaces:
Transferable,Serializable,Cloneable,MutableTreeNode,TreeNode
public class ClassNode extends DotNotationNode
Specialized tree node.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanm_Deprecatedwhether the class is deprecated.-
Fields inherited from class adams.gui.core.dotnotationtree.DotNotationNode
m_Item, MULTIPLE_ROOT
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDeprecated()Checks whether the associated class is deprecated (only for leaves).booleanisItemLeaf()Returns whether this node represents a leaf node in the sense of the end-point of the dot notation of the full label.StringtoString()Returns a string to be displayed in the tree.-
Methods inherited from class adams.gui.core.dotnotationtree.DotNotationNode
getItem, getLabel, getSeparator, isLabelMatch, toTransferable
-
Methods inherited from class adams.gui.core.BaseTreeNode
getChildren, getTransferData, getTransferDataFlavors, isDataFlavorSupported, toPlainText
-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
-
-
-
-
Field Detail
-
m_Deprecated
protected Boolean m_Deprecated
whether the class is deprecated.
-
-
Constructor Detail
-
ClassNode
public ClassNode(String label)
Initializes the class node with the specified label (package or class name).- Parameters:
label- the label for this node
-
-
Method Detail
-
isItemLeaf
public boolean isItemLeaf()
Returns whether this node represents a leaf node in the sense of the end-point of the dot notation of the full label. Custom trees might have additional information below this actual leaf node.- Overrides:
isItemLeafin classDotNotationNode- Returns:
- true if leaf
-
isDeprecated
public boolean isDeprecated()
Checks whether the associated class is deprecated (only for leaves).- Returns:
- true if deprecated
-
toString
public String toString()
Returns a string to be displayed in the tree.- Overrides:
toStringin classDefaultMutableTreeNode- Returns:
- the string for the tree
-
-