Class DiagramExporter

java.lang.Object
berlin.yuna.survey.logic.DiagramExporter

public class DiagramExporter extends Object
The DiagramExporter exports and renders a Survey within its FlowItem to the given Format. The export can be configured using config()
  • Field Details

  • Constructor Details

    • DiagramExporter

      public DiagramExporter(Survey survey)
  • Method Details

    • save

      public File save(guru.nidi.graphviz.engine.Format format) throws IOException
      Renders a diagram from a survey flow
      Parameters:
      format - format of generated diagram
      Returns:
      file path of generated diagram
      Throws:
      IOException
    • save

      public File save(File output, guru.nidi.graphviz.engine.Format format) throws IOException
      Renders a diagram from a survey flow
      Parameters:
      output - nullable target path - on default generates a tmp file
      format - format of generated diagram
      Returns:
      file path of generated diagram
      Throws:
      IOException
    • config

      public DiagramConfig config()
      Method do configure the diagram export
      Returns:
      diagram configuration
    • Config

      public void Config(DiagramConfig config)
      Replaces the current config
      Parameters:
      config - config replaces current one
    • survey

      public Survey survey()
      Get Survey
      Returns:
      Survey