Class DiagramExporter

    • Constructor Detail

      • DiagramExporter

        public DiagramExporter​(Survey survey)
    • Method Detail

      • 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