18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.tree;
27 // ISSUE: this class depends on nothing in AWT -- move to java.util?
28
29 import java.io.*;
30 import java.util.*;
31
32
33 /**
34 * A <code>DefaultMutableTreeNode</code> is a general-purpose node in a tree data
35 * structure.
36 * For examples of using default mutable tree nodes, see
37 * <a
38 href="http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html">How to Use Trees</a>
39 * in <em>The Java Tutorial.</em>
40 *
41 * <p>
42 *
43 * A tree node may have at most one parent and 0 or more children.
44 * <code>DefaultMutableTreeNode</code> provides operations for examining and modifying a
45 * node's parent and children and also operations for examining the tree that
46 * the node is a part of. A node's tree is the set of all nodes that can be
47 * reached by starting at the node and following all the possible links to
48 * parents and children. A node with no parent is the root of its tree; a
49 * node with no children is a leaf. A tree may consist of many subtrees,
50 * each node acting as the root for its own subtree.
51 * <p>
52 * This class provides enumerations for efficiently traversing a tree or
53 * subtree in various orders or for following the path between two nodes.
54 * A <code>DefaultMutableTreeNode</code> may also hold a reference to a user object, the
55 * use of which is left to the user. Asking a <code>DefaultMutableTreeNode</code> for its
56 * string representation with <code>toString()</code> returns the string
57 * representation of its user object.
58 * <p>
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing.tree;
27 // ISSUE: this class depends on nothing in AWT -- move to java.util?
28
29 import java.io.*;
30 import java.util.*;
31
32
33 /**
34 * A <code>DefaultMutableTreeNode</code> is a general-purpose node in a tree data
35 * structure.
36 * For examples of using default mutable tree nodes, see
37 * <a
38 href="http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html">How to Use Trees</a>
39 * in <em>The Java Tutorial.</em>
40 *
41 * <p>
42 *
43 * A tree node may have at most one parent and 0 or more children.
44 * <code>DefaultMutableTreeNode</code> provides operations for examining and modifying a
45 * node's parent and children and also operations for examining the tree that
46 * the node is a part of. A node's tree is the set of all nodes that can be
47 * reached by starting at the node and following all the possible links to
48 * parents and children. A node with no parent is the root of its tree; a
49 * node with no children is a leaf. A tree may consist of many subtrees,
50 * each node acting as the root for its own subtree.
51 * <p>
52 * This class provides enumerations for efficiently traversing a tree or
53 * subtree in various orders or for following the path between two nodes.
54 * A <code>DefaultMutableTreeNode</code> may also hold a reference to a user object, the
55 * use of which is left to the user. Asking a <code>DefaultMutableTreeNode</code> for its
56 * string representation with <code>toString()</code> returns the string
57 * representation of its user object.
58 * <p>
|