edu.mit.ai.psg.ui.outliner
Class OutlineNodeDefault
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--edu.mit.ai.psg.ui.outliner.OutlineNodeDefault
- Direct Known Subclasses:
- CallOutlineNodeDefault, OutlineModel.HiddenRootNode
- public class OutlineNodeDefault
- extends DefaultMutableTreeNode
- implements OutlineNode
OutlineNodeDefault: TreeNode class which extends
DefaultMutableTreeNode by enabling each node to have its own
renderer, to keep a second object used to compute a label, and
to keep track of whether its children have been computed.
Most uses will not need to derive classes (exception: adding more state);
most behavior is handled by OutlineRenderer so that
alternate views can be created simply by changing this nodes' renderer.
- See Also:
- Serialized Form
| 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,
isNodeAncestor,
isNodeChild,
isNodeDescendant,
isNodeRelated,
isNodeSibling,
isRoot,
pathFromAncestorEnumeration,
postorderEnumeration,
preorderEnumeration,
remove,
remove,
removeAllChildren,
removeFromParent,
setAllowsChildren,
setParent,
setUserObject |
OutlineNodeDefault
public OutlineNodeDefault(Object obj,
OutlineRenderer renderer)
OutlineNodeDefault
public OutlineNodeDefault(Object label,
Object obj,
OutlineRenderer renderer)
getObject
public Object getObject()
- Specified by:
- getObject in interface OutlineNode
getLabel
public Object getLabel()
- Specified by:
- getLabel in interface OutlineNode
getRenderer
public OutlineRenderer getRenderer()
- Specified by:
- getRenderer in interface OutlineNode
childrenAreComputed
public boolean childrenAreComputed()
- Specified by:
- childrenAreComputed in interface OutlineNode
setChildrenAreComputed
public void setChildrenAreComputed(boolean v)
- Specified by:
- setChildrenAreComputed in interface OutlineNode
isLeaf
public boolean isLeaf()
- Overrides:
- isLeaf in class DefaultMutableTreeNode
setIsLeaf
public void setIsLeaf(boolean v)
- Specified by:
- setIsLeaf in interface OutlineNode
add
public void add(OutlineNode newChild)
- Specified by:
- add in interface OutlineNode
toString
public String toString()
- Overrides:
- toString in class DefaultMutableTreeNode