| java.lang.Object org.geotools.resources.OptionalDependencies
OptionalDependencies | final public class OptionalDependencies (Code) | | Bridges to optional dependencies (especially
widget-swing module).
since: 2.0 version: $Id: OptionalDependencies.java 26518 2007-08-10 17:05:01Z desruisseaux $ author: Martin Desruisseaux |
createTreeNode | public static DefaultMutableTreeNode createTreeNode(String name, Object object, boolean allowsChildren)(Code) | | Creates an initially empty tree node.
Parameters: name - The value to be returned by TreeNode.toString. Parameters: object - The user object to be returned by the tree node. Mayor may not be the same than name . Parameters: allowsChildren - if children are allowed. |
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.
This method should not be defined here, since this class is about optional dependencies.
It should be defined in
org.geotools.gui.swing.tree.Trees instead. However we put
it here (for now) because it is used in some module that don't want to depend on widgets.
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.
This method should not be defined here, since this class is about optional dependencies.
It should be defined in
org.geotools.gui.swing.tree.Trees instead. However we put
it here (for now) because it is used in some module that don't want to depend on widgets.
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 MutableTreeNode xmlToSwing(Node node)(Code) | | Creates a Swing root tree node from a XML root tree node. Together with
OptionalDependencies.toString(TreeNode) , this method provides a convenient way to print
the content of a XML document for debugging purpose.
This method should not be defined here, since this class is about optional dependencies.
It should be defined in
org.geotools.gui.swing.tree.Trees instead. However we put
it here (for now) because it is used in some module that don't want to depend on widgets.
|
|
|