| java.lang.Object org.geotools.gui.swing.tree.Trees
Trees | final public class Trees (Code) | | Convenience static methods for trees operations.
since: 2.0 version: $Id: Trees.java 26890 2007-09-07 11:05:40Z desruisseaux $ author: Martin Desruisseaux |
print | public static void print(TreeModel tree)(Code) | | Prints the specified tree model to the
.
This method is mostly a convenience for debugging purpose.
since: 2.4 |
print | public static void print(TreeNode node)(Code) | | Prints the specified tree to the
.
This method is mostly a convenience for debugging purpose.
since: 2.4 |
toString | public static String toString(TreeModel tree)(Code) | | Returns a graphical representation of the specified tree model. This representation can
be printed to the
(for example) if it uses
a monospaced font and supports unicode.
Parameters: tree - The tree to format. A string representation of the tree, or null if it doesn't contain any node. |
toString | public static String toString(TreeNode node)(Code) | | Returns a graphical representation of the specified tree. This representation can be
printed to the
(for example) if it uses
a monospaced font and supports unicode.
Parameters: node - The root node of the tree to format. A string representation of the tree, or null if it doesn't contain any node. |
xmlToSwing | public static TreeNode xmlToSwing(Node node)(Code) | | Creates a Swing root tree node from a XML root tree node. Together with
Trees.toString(TreeNode) , this method provides a convenient way to print
the content of a XML document for debugging purpose.
|
|
|