Package weka.gui
Class GenericObjectEditor.GOETreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
weka.gui.GenericObjectEditor.GOETreeNode
- All Implemented Interfaces:
Serializable
,Cloneable
,MutableTreeNode
,TreeNode
- Enclosing class:
- GenericObjectEditor
A specialized TreeNode for supporting filtering via Capabilities.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
color for "maybe support".static final String
color for "no support".Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
-
Constructor Summary
ConstructorDescriptionCreates a tree node that has no parent and no children, but which allows children.GOETreeNode
(Object userObject) Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object.GOETreeNode
(Object userObject, boolean allowsChildren) Creates a tree node with no parent, no children, initialized with the specified user object, and that allows children only if specified. -
Method Summary
Modifier and TypeMethodDescriptionGet the tool tip for this nodevoid
setToolTipText
(String tip) Set the tool tip for this nodetoString()
returns a string representation of this treenode.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, 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
-
NO_SUPPORT
color for "no support".- See Also:
-
MAYBE_SUPPORT
color for "maybe support".- See Also:
-
-
Constructor Details
-
GOETreeNode
public GOETreeNode()Creates a tree node that has no parent and no children, but which allows children. -
GOETreeNode
Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object.- Parameters:
userObject
- an Object provided by the user that constitutes the node's data
-
GOETreeNode
Creates a tree node with no parent, no children, initialized with the specified user object, and that allows children only if specified.- Parameters:
userObject
- an Object provided by the user that constitutes the node's dataallowsChildren
- if true, the node is allowed to have child nodes -- otherwise, it is always a leaf node
-
-
Method Details
-
setToolTipText
Set the tool tip for this node- Parameters:
tip
- the tool tip for this node
-
getToolTipText
Get the tool tip for this node- Returns:
- the tool tip for this node
-
toString
returns a string representation of this treenode.- Overrides:
toString
in classDefaultMutableTreeNode
- Returns:
- the text to display
-