Package org.fife.rsta.ac.java.tree
Class JavaTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
org.fife.rsta.ac.SourceTreeNode
org.fife.rsta.ac.java.tree.JavaTreeNode
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SourceTreeNode>,MutableTreeNode,TreeNode
- Direct Known Subclasses:
LocalVarTreeNode,MemberTreeNode,TypeDeclarationTreeNode
Base class for nodes in the Java outline tree.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ASTNodeprivate Iconprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intFields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)JavaTreeNode(String text, String iconName) (package private)JavaTreeNode(String text, String iconName, boolean sorted) protectedJavaTreeNode(ASTNode node) protectedJavaTreeNode(ASTNode node, String iconName) protectedJavaTreeNode(ASTNode node, String iconName, boolean sorted) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SourceTreeNode obj) Overridden to compare tree text without HTML.getIcon()getText(boolean selected) voidtoString()Overridden to return the same thing as getText(false), so we look nice with ToolTipTrees.Methods inherited from class org.fife.rsta.ac.SourceTreeNode
add, children, clone, cloneWithChildren, filter, getChildAfter, getChildAt, getChildBefore, getChildCount, getIndex, getSortPriority, isSortable, isSorted, refresh, setSortable, setSorted, setSortPriorityMethods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, depthFirstEnumeration, getAllowsChildren, getDepth, getFirstChild, getFirstLeaf, 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 Details
-
astNode
-
icon
-
PRIORITY_TYPE
protected static final int PRIORITY_TYPE- See Also:
-
PRIORITY_FIELD
protected static final int PRIORITY_FIELD- See Also:
-
PRIORITY_CONSTRUCTOR
protected static final int PRIORITY_CONSTRUCTOR- See Also:
-
PRIORITY_METHOD
protected static final int PRIORITY_METHOD- See Also:
-
PRIORITY_LOCAL_VAR
protected static final int PRIORITY_LOCAL_VAR- See Also:
-
PRIORITY_BOOST_STATIC
protected static final int PRIORITY_BOOST_STATIC- See Also:
-
-
Constructor Details
-
JavaTreeNode
-
JavaTreeNode
-
JavaTreeNode
-
JavaTreeNode
-
JavaTreeNode
-
-
Method Details
-
compareTo
Overridden to compare tree text without HTML.- Specified by:
compareToin interfaceComparable<SourceTreeNode>- Overrides:
compareToin classSourceTreeNode- Parameters:
obj- A tree node to compare to.- Returns:
- How these tree nodes compare relative to each other.
-
getASTNode
-
getIcon
-
getText
-
setIcon
-
toString
Overridden to return the same thing as getText(false), so we look nice with ToolTipTrees.- Overrides:
toStringin classDefaultMutableTreeNode- Returns:
- A string representation of this tree node.
-