Skip to content
Snippets Groups Projects
Commit 7f04a516 authored by William Schultz's avatar William Schultz Committed by Markus Alexander Kuppe
Browse files

Improve some code formatting

parent 610fb10f
No related branches found
No related tags found
No related merge requests found
...@@ -235,9 +235,11 @@ public class DotStateWriter extends StateWriter { ...@@ -235,9 +235,11 @@ public class DotStateWriter extends StateWriter {
sb.append(String.format("subgraph %s {", "cluster_legend")); sb.append(String.format("subgraph %s {", "cluster_legend"));
sb.append("graph[style=bold];"); sb.append("graph[style=bold];");
sb.append("label = \"Next State Actions\" style=\"solid\"\n"); sb.append("label = \"Next State Actions\" style=\"solid\"\n");
sb.append(String.format("node [ labeljust=\"l\" colorscheme=\"%s\" style=filled shape=record ]\n", dotColorScheme)); sb.append(String.format("node [ labeljust=\"l\" colorscheme=\"%s\" style=filled shape=record ]\n",
dotColorScheme));
for (String action : actions) { for (String action : actions) {
String str = String.format("%s [label=\"%s\" fillcolor=%d]", action, action, this.actionToColors.get(action)); String str = String.format("%s [label=\"%s\" fillcolor=%d]", action, action,
this.actionToColors.get(action));
sb.append(str); sb.append(str);
sb.append("\n"); sb.append("\n");
} }
...@@ -272,8 +274,8 @@ public class DotStateWriter extends StateWriter { ...@@ -272,8 +274,8 @@ public class DotStateWriter extends StateWriter {
// We only need the legend if the edges are colored by action. // We only need the legend if the edges are colored by action.
if(colorize) { if(colorize) {
this.writer.append(dotLegend("DotLegend", this.actionToColors.keySet())); this.writer.append(dotLegend("DotLegend", this.actionToColors.keySet()));
this.writer.append("}");
} }
this.writer.append("}");
super.close(); super.close();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment