| java.lang.Object com.opensymphony.webwork.sitegraph.SiteGraph
SiteGraph | public class SiteGraph (Code) | | // START SNIPPET: javadocs-intro
SiteGraph is a tool that renders out GraphViz-generated images depicting your
WebWork-powered web application's flow. SiteGraph requires GraphViz be installed
and that the "dot" executable be in your command path. You can find GraphViz
at http://www.graphviz.org.
// END SNIPPET: javadocs-intro
// START SNIPPET: javadocs-api
If you wish to use SiteGraph through its API rather than through the command line,
you can do that as well. All you need to do is create a new SiteGraph instance,
optionally specify a
Writer to output the dot content to, and then call
SiteGraph.prepare() .
// END SNIPPET: javadocs-api
|
Method Summary | |
public static void | main(String[] args) | public void | prepare() Prepares the dot generated content and writes out to the provided writer
object. | public void | render() Invokes the dot command, cause GraphViz to render out.dot in the form of out.gif,
located in the specified output directory. | public void | setWriter(Writer writer) |
prepare | public void prepare()(Code) | | Prepares the dot generated content and writes out to the provided writer
object. If no writer has been given, that a
FileWriter pointing to "out.dot"
in the specified output directly shall be used.
|
render | public void render()(Code) | | Invokes the dot command, cause GraphViz to render out.dot in the form of out.gif,
located in the specified output directory. If an error occurs during this process,
the error is logged and the method completes without throwing an exception.
|
|
|