Package berlin.yuna.survey.logic
Class DiagramExporter
java.lang.Object
berlin.yuna.survey.logic.DiagramExporter
The
DiagramExporter
exports and renders a Survey
within its FlowItem
to the given
Format
. The export can be configured using config()
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
CONFIG_KEY_SHAPE
-
CONFIG_KEY_COLOR
-
CONFIG_KEY_CLASS
- See Also:
-
CONFIG_KEY_SOURCE
- See Also:
-
CONFIG_KEY_TARGET
- See Also:
-
CONFIG_KEY_CONDITION
- See Also:
-
-
Constructor Details
-
DiagramExporter
-
-
Method Details
-
save
Renders a diagram from a survey flow- Parameters:
format
- format of generated diagram- Returns:
- file path of generated diagram
- Throws:
IOException
-
save
Renders a diagram from a survey flow- Parameters:
output
- nullable target path - on default generates a tmp fileformat
- format of generated diagram- Returns:
- file path of generated diagram
- Throws:
IOException
-
config
Method do configure the diagram export- Returns:
- diagram configuration
-
Config
Replaces the current config- Parameters:
config
- config replaces current one
-
survey
GetSurvey
- Returns:
Survey
-