| java.lang.Object org.geotools.referencing.factory.FactoryDependencies
FactoryDependencies | public class FactoryDependencies (Code) | | Build a tree of factory dependencies.
since: 2.4 version: $Id: FactoryDependencies.java 25477 2007-05-10 13:01:00Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
public | FactoryDependencies(Factory factory) Creates a new dependency tree for the specified factory. |
Method Summary | |
public TreeNode | asTree() Returns the dependencies as a tree. | public boolean | isAttributeEnabled() Returns
true if attributes are to be printed. | public boolean | isColorEnabled() Returns
true if syntax coloring is enabled. | public void | print(PrintWriter out) Prints the dependencies as a tree to the specified printer. | public void | print(Writer out) Prints the dependencies as a tree to the specified writer. | public void | setAttributeEnabled(boolean enabled) Enables or disables the addition of attributes after factory names. | public void | setColorEnabled(boolean enabled) Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429)
compatible terminal. |
FactoryDependencies | public FactoryDependencies(Factory factory)(Code) | | Creates a new dependency tree for the specified factory.
|
asTree | public TreeNode asTree()(Code) | | Returns the dependencies as a tree.
|
isAttributeEnabled | public boolean isAttributeEnabled()(Code) | | Returns
true if attributes are to be printed.
By default, attributes are not printed.
|
isColorEnabled | public boolean isColorEnabled()(Code) | | Returns
true if syntax coloring is enabled.
Syntax coloring is disabled by default.
|
print | public void print(PrintWriter out)(Code) | | Prints the dependencies as a tree to the specified printer.
|
print | public void print(Writer out) throws IOException(Code) | | Prints the dependencies as a tree to the specified writer.
Parameters: out - The writer where to print the tree. throws: IOException - if an error occured while writting to the stream. |
setAttributeEnabled | public void setAttributeEnabled(boolean enabled)(Code) | | Enables or disables the addition of attributes after factory names. Attributes
are labels like "
crs ", "
datum ", etc. put between
parenthesis. They give indications on the services implemented by the factory
(e.g.
CRSAuthorityFactory ,
DatumAuthorityFactory , etc.).
|
setColorEnabled | public void setColorEnabled(boolean enabled)(Code) | | Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429)
compatible terminal. By default, syntax coloring is disabled.
|
|
|