deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.commons.utils
Class GraphvizDot

java.lang.Object
  extended by org.deegree.commons.utils.GraphvizDot

public class GraphvizDot
extends Object

The GraphvizDot class provides a few methods to create a graphviz 'dot' file. For more information on dot files please see http://www.graphviz.org

Version:
$Revision: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17 Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
GraphvizDot()
           
 
Method Summary
static void endGraph(Writer writer)
          Writes the last closing bracket.
static String getFillColorDef(String color)
          http://www.graphviz.org/doc/info/colors.html
static String getLabelDef(String label)
           
static String getShapeDef(String shape)
          http://www.graphviz.org/doc/info/shapes.html
static void startDiGraph(Writer writer)
          Writes the starting directed graph definition.
static void writeEdge(String from, String to, List<String> attr_List, Writer writer)
          Writes a vertex.
static void writeVertex(String id, List<String> attr_List, Writer writer)
          Writes a vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphvizDot

public GraphvizDot()
Method Detail

startDiGraph

public static void startDiGraph(Writer writer)
                         throws IOException
Writes the starting directed graph definition.

Parameters:
writer -
Throws:
IOException

endGraph

public static void endGraph(Writer writer)
                     throws IOException
Writes the last closing bracket.

Parameters:
writer -
Throws:
IOException

writeVertex

public static void writeVertex(String id,
                               List<String> attr_List,
                               Writer writer)
                        throws IOException
Writes a vertex.

Parameters:
id - of the vertex
attr_List - of attributes to write to the vertex definition
writer -
Throws:
IOException

writeEdge

public static void writeEdge(String from,
                             String to,
                             List<String> attr_List,
                             Writer writer)
                      throws IOException
Writes a vertex.

Parameters:
from - this vertex
to - this vertex
attr_List - of attributes to write to the edge definition
writer -
Throws:
IOException

getLabelDef

public static String getLabelDef(String label)
Parameters:
label - to set
Returns:
a label statement in the graphviz language

getFillColorDef

public static String getFillColorDef(String color)
http://www.graphviz.org/doc/info/colors.html

Parameters:
color - to set
Returns:
a fill color statement in the graphviz language

getShapeDef

public static String getShapeDef(String shape)
http://www.graphviz.org/doc/info/shapes.html

Parameters:
shape - to set
Returns:
a fill color statement in the graphviz language

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>