visad.data.hdf5.hdf5objects
Class HDF5TreeNode
- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- visad.data.hdf5.hdf5objects.HDF5TreeNode
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
public class HDF5TreeNode extends javax.swing.tree.DefaultMutableTreeNode- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description HDF5TreeNode()Creates a tree node that has no parent and no children, but which allows children.HDF5TreeNode(HDF5Object userObject)Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object.HDF5TreeNode(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprintTree()Print the tree information starting this nodejava.lang.StringtoString()Returns the result of sendingtoString()to this node's user object, or null if this node has no user object.-
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
-
-
-
-
Constructor Detail
-
HDF5TreeNode
public HDF5TreeNode()
Creates a tree node that has no parent and no children, but which allows children.
-
HDF5TreeNode
public HDF5TreeNode(HDF5Object userObject)
Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object.
-
HDF5TreeNode
public HDF5TreeNode(java.lang.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 Detail
-
printTree
public void printTree()
Print the tree information starting this node
-
toString
public java.lang.String toString()
Returns the result of sendingtoString()to this node's user object, or null if this node has no user object.- Overrides:
toStringin classjavax.swing.tree.DefaultMutableTreeNode- See Also:
DefaultMutableTreeNode.getUserObject()
-
-
DMelt 3.0 © DataMelt by jWork.ORG