com.bluemarsh.jswat.panel
Class BasicTreeNode

java.lang.Object
  |
  +--javax.swing.tree.DefaultMutableTreeNode
        |
        +--com.bluemarsh.jswat.panel.BasicTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
DbgVar

public class BasicTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

A BasicTreeNode is class that represents a node in our debugger variable tree.

Version:
1.0 6/3/00
Author:
David Lum
See Also:
Serialized Form

Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
BasicTreeNode()
          Creates a new BasicTreeNode.
BasicTreeNode(java.lang.String label)
          Creates a new BasicTreeNode with a string label.
 
Method Summary
 javax.swing.Icon getIcon(boolean isExpanded)
          Returns an appropriate icon for 'this' variable.
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicTreeNode

public BasicTreeNode()
Creates a new BasicTreeNode.

BasicTreeNode

public BasicTreeNode(java.lang.String label)
Creates a new BasicTreeNode with a string label.
Method Detail

getIcon

public javax.swing.Icon getIcon(boolean isExpanded)
Returns an appropriate icon for 'this' variable.
Parameters:
isExpanded - true if node is expanded
Returns:
an icon appropriate for 'this' variable