org.vizzini.util
Class GraphvizRunner

java.lang.Object
  extended by org.vizzini.util.GraphvizRunner

public class GraphvizRunner
extends Object

Provides a utility to run the Graphviz program.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
GraphvizRunner()
          Construct this object.
GraphvizRunner(String graphvizRunner)
          Construct this object with the given parameter.
 
Method Summary
 void run(String dotString, String fileRoot)
          Run Graphviz using the given parameters.
 void run(String dotFilename, String outputFormat, String outputFilename)
          Run Graphviz using the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphvizRunner

public GraphvizRunner()
Construct this object.

Since:
v0.3

GraphvizRunner

public GraphvizRunner(String graphvizRunner)
Construct this object with the given parameter.

Parameters:
graphvizRunner - Full path to the Graphviz runner script.
Since:
v0.3
Method Detail

run

public void run(String dotString,
                String fileRoot)
Run Graphviz using the given parameters.

Parameters:
dotString - Dot format string to process.
fileRoot - Full path to the root of the dot file and the desired output file.

run

public void run(String dotFilename,
                String outputFormat,
                String outputFilename)
Run Graphviz using the given parameters.

Parameters:
dotFilename - Full pathname of the dot file to process.
outputFormat - Desired output format. (e.g. png)
outputFilename - Full pathname of the output file.


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02