|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.utils.GraphvizDot
public class GraphvizDot
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
Constructor Summary | |
---|---|
GraphvizDot()
|
Method Summary | |
---|---|
static void |
addRankDirLeftToRight(List<String> attribs)
|
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 String |
getStyleDef(String style)
|
static void |
startDiGraph(Writer writer)
Writes the starting directed graph definition. |
static void |
startDiGraph(Writer writer,
List<String> attribs)
Writes the starting directed graph definition. and adds the given attributes to the graph start. |
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 |
---|
public GraphvizDot()
Method Detail |
---|
public static void startDiGraph(Writer writer) throws IOException
writer
-
IOException
public static void startDiGraph(Writer writer, List<String> attribs) throws IOException
writer
- attribs
- the attributes to write beneath the opening of the graph. For example use the
addRankDirLeftToRight(List)
to do left to right drawing of the graph
IOException
IOException
public static void endGraph(Writer writer) throws IOException
writer
-
IOException
public static void writeVertex(String id, List<String> attr_List, Writer writer) throws IOException
id
- of the vertexattr_List
- of attributes to write to the vertex definitionwriter
-
IOException
public static void writeEdge(String from, String to, List<String> attr_List, Writer writer) throws IOException
from
- this vertexto
- this vertexattr_List
- of attributes to write to the edge definitionwriter
-
IOException
public static String getLabelDef(String label)
label
- to set
public static String getFillColorDef(String color)
color
- to set
public static String getShapeDef(String shape)
shape
- to set
public static void addRankDirLeftToRight(List<String> attribs)
attribs
- public static String getStyleDef(String style)
style
- one of 'solid dashed dotted bold invis'
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |