public class DOTExporter extends AbstractStatesExporter<String,State,Message,StateMachine>
| Modifier and Type | Class and Description |
|---|---|
static class |
DOTExporter.RankDir
The possible Rank direction of the grapth
|
currentStateColor, DEFAULT_CURRENT_COLOR, DEFAULT_FINAL_COLOR, fileSystem, finalStateColor, graphName, NL, showCurrent, TB, useHSB| Constructor and Description |
|---|
DOTExporter(FileSystem fileSystem,
String graphName,
Color finalStateColor,
boolean useHSB,
boolean showCurrent,
Color currentStateColor,
DOTExporter.RankDir rankDir)
All arguments constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
export(@NonNull StateMachine stateMachine)
Export the current contents of the state machine
to the DOT language.
|
exportToFile, exportToFile, fillDefaultspublic DOTExporter(FileSystem fileSystem, String graphName, Color finalStateColor, boolean useHSB, boolean showCurrent, Color currentStateColor, DOTExporter.RankDir rankDir)
fileSystem - the filesystemgraphName - the graph namefinalStateColor - the final state coloruseHSB - the flag to control exporting using HSB color formatshowCurrent - the flag to control annotating current statuscurrentStateColor - the current state colorrankDir - the graph directionpublic String export(@NonNull @NonNull StateMachine stateMachine)
stateMachine - the state machine to exportCopyright © 2019 state-machine. All rights reserved.