Class DfdTikzGenerator

java.lang.Object
be.kuleuven.cs.distrinet.sparta.io.diagram.DfdTikzGenerator

public final class DfdTikzGenerator extends Object
Renders a Data Flow Diagram as a self-contained tikzpicture, reusing the node geometry the user arranged in the Sirius editor (via AirdLayout). Purely string-based and headless: no Sirius/GMF/draw2d/SWT, so it runs in the RCP and the standalone CLI alike. The emitted styles (process/datastore/ externalentity/trustboundary/to) are defined in templates/tikz/dfdstyle.tex, which the report preamble already \inputs.
  • Method Details

    • generate

      public static String generate(DFDModel model, AirdLayout layout)
      Parameters:
      model - the DFD model root
      layout - the diagram layout parsed from the .aird (may be empty)
      Returns:
      a LaTeX tikzpicture block, or null if there is nothing to draw (no model, or no element has a known position).