org.enableit.db.darrt.visualise
Class SchemaVisualiser

java.lang.Object
  |
  +--org.enableit.db.darrt.AbstractFileHandler
        |
        +--org.enableit.db.darrt.AbstractSchemaHandler
              |
              +--org.enableit.db.darrt.visualise.SchemaVisualiser

public class SchemaVisualiser
extends AbstractSchemaHandler

Visualize a DAR schema. Not thread-safe, if used in multi-threaded environment should be externally synchronized.

Author:
$Author: tim $

Field Summary
static java.lang.String ABOUT
          CVS info ABOUT this class and its current version
static java.lang.String SVG_NAMESPACE_URI
          The SVG namespace for generated documents.
 
Constructor Summary
SchemaVisualiser()
          Default Constructor
 
Method Summary
 org.w3c.dom.Document toSVG(org.w3c.dom.Document doc, org.enableit.db.beans.Table table)
          Converts a Table object into an SVG representation.
 org.w3c.dom.Document toSVG(org.enableit.db.beans.Table table)
          Converts a Table object into an SVG representation.
 
Methods inherited from class org.enableit.db.darrt.AbstractSchemaHandler
addListener, addListeners, diffSchemas, getDatabase, getDebug, getListeners, getOnlineRefSchema, getOnlineTargetSchema, getRefDatabase, getRefSchemaName, getRefSchemaUrl, getTablePattern, getTargetDatabase, getTargetSchemaUrl, setDebug, setOnlineRefSchema, setOnlineTargetSchema, setRefDatabase, setRefSchemaName, setRefSchemaUrl, setTablePattern, setTargetDatabase, setTargetSchemaUrl
 
Methods inherited from class org.enableit.db.darrt.AbstractFileHandler
getOperDir, setOperDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SVG_NAMESPACE_URI

public static final java.lang.String SVG_NAMESPACE_URI
The SVG namespace for generated documents.

See Also:
Constant Field Values

ABOUT

public static final java.lang.String ABOUT
CVS info ABOUT this class and its current version

See Also:
Constant Field Values
Constructor Detail

SchemaVisualiser

public SchemaVisualiser()
                 throws javax.xml.parsers.FactoryConfigurationError,
                        javax.xml.parsers.ParserConfigurationException
Default Constructor

Method Detail

toSVG

public org.w3c.dom.Document toSVG(org.enableit.db.beans.Table table)
Converts a Table object into an SVG representation. Note that the representation takes no account of the positioning of any other objects, just the one provided.

Parameters:
table - Table to create visualisation of.

toSVG

public org.w3c.dom.Document toSVG(org.w3c.dom.Document doc,
                                  org.enableit.db.beans.Table table)
Converts a Table object into an SVG representation. Note that the representation takes no account of the positioning of any other objects, just the one provided.

Parameters:
doc - Pre-existing Document to append to.
table - Table to create visualisation of.


Copyright © 1999-2004 enableIT.org. All Rights Reserved.