Package aud.util

Class Graphviz

java.lang.Object
aud.util.Graphviz

public class Graphviz extends Object
Use GraphViz to render graph structures.

Requires an installation of GraphViz.

See Also:
  • Constructor Details

    • Graphviz

      public Graphviz()
  • Method Details

    • renderDotFileToFile

      public File renderDotFileToFile(File dotfile, String format)
      Render dot file.

      Excutes GraphViz dot and writes an output file ditfile+"."+format.

    • displayAsPDF

      public void displayAsPDF(String dotCode)
      Render and display dotCode.

      \bug The generated PDF file is not removed! (There is no portable and trivial way to ensure removal.)

    • displayAsPDF

      public void displayAsPDF(Graphvizable object)
      Display object.
      See Also:
    • display

      public DotViewer display(String dotCode)
      Render and display dotCode.
      Returns:
      viewer instance
    • display

      public DotViewer display(Graphvizable object)
      Display object.
      Returns:
      viewer instance