Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enableit.db.darrt.visualise
Class SchemaVisualiser  view SchemaVisualiser download SchemaVisualiser.java

java.lang.Object
  extended byorg.enableit.db.darrt.AbstractSchemaHandler
      extended byorg.enableit.db.darrt.visualise.SchemaVisualiser

public class SchemaVisualiser
extends org.enableit.db.darrt.AbstractSchemaHandler

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


Field Summary
static java.lang.String about
          CVS info about this class and its current version
private  javax.xml.parsers.DocumentBuilder docBuilder
          JAXP document builder to create new DOMs.
private static int fontHeight
          Height of text.
private static int fontWidth
          Width of single text character.
private  org.w3c.dom.DOMImplementation impl
          The DOM implementation we are using.
private static org.apache.log4j.Logger logger
          The Log4J Logger doing the logging.
private  int maxX
          Max.
static java.lang.String SVG_NAMESPACE_URI
          The SVG namespace for generated documents.
private static int textSpacing
          Space before and after text lines.
private  int y
          Y co-ord for next text line.
 
Fields inherited from class org.enableit.db.darrt.AbstractSchemaHandler
 
Constructor Summary
SchemaVisualiser()
          Default Constructor
 
Method Summary
 org.w3c.dom.Document toSVG(org.w3c.dom.Document doc, org.enableit.db.darrt.schema.Table table)
          Converts a Table object into an SVG representation.
 org.w3c.dom.Document toSVG(org.enableit.db.darrt.schema.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxX

private int maxX
Max. width required by image.


y

private int y
Y co-ord for next text line.


impl

private org.w3c.dom.DOMImplementation impl
The DOM implementation we are using.


docBuilder

private javax.xml.parsers.DocumentBuilder docBuilder
JAXP document builder to create new DOMs.


logger

private static org.apache.log4j.Logger logger
The Log4J Logger doing the logging.


fontWidth

private static final int fontWidth
Width of single text character.

See Also:
Constant Field Values

fontHeight

private static final int fontHeight
Height of text.

See Also:
Constant Field Values

textSpacing

private static final int textSpacing
Space before and after text lines.

See Also:
Constant Field Values

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.darrt.schema.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.


toSVG

public org.w3c.dom.Document toSVG(org.w3c.dom.Document doc,
                                  org.enableit.db.darrt.schema.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.