summaryrefslogtreecommitdiff
path: root/src/net/sourceforge/plantuml/UmlDiagram.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sourceforge/plantuml/UmlDiagram.java')
-rw-r--r--src/net/sourceforge/plantuml/UmlDiagram.java26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/net/sourceforge/plantuml/UmlDiagram.java b/src/net/sourceforge/plantuml/UmlDiagram.java
index ed1b500..dd1adbb 100644
--- a/src/net/sourceforge/plantuml/UmlDiagram.java
+++ b/src/net/sourceforge/plantuml/UmlDiagram.java
@@ -240,13 +240,13 @@ public abstract class UmlDiagram extends AbstractPSystem implements Diagram, Ann
return new ImageDataSimple();
}
- private void exportDiagramError(OutputStream os, Throwable exception, FileFormatOption fileFormat,
+ public void exportDiagramError(OutputStream os, Throwable exception, FileFormatOption fileFormat,
String graphvizVersion) throws IOException {
- exportDiagramError2(os, exception, fileFormat, getMetadata(), getFlashData(),
+ exportDiagramError(os, exception, fileFormat, getMetadata(), getFlashData(),
getFailureText1(exception, graphvizVersion));
}
- public static void exportDiagramError2(OutputStream os, Throwable exception, FileFormatOption fileFormat,
+ public static void exportDiagramError(OutputStream os, Throwable exception, FileFormatOption fileFormat,
String metadata, String flash, List<String> strings) throws IOException {
final UFont font = new UFont("SansSerif", Font.PLAIN, 12);
strings.addAll(CommandExecutionResult.getStackTrace(exception));
@@ -265,9 +265,9 @@ public abstract class UmlDiagram extends AbstractPSystem implements Diagram, Ann
GraphicPosition.BACKGROUND_CORNER_TOP_RIGHT);
if (im == null) {
- imageBuilder.addUDrawable(graphicStrings);
+ imageBuilder.setUDrawable(graphicStrings);
} else {
- imageBuilder.addUDrawable(new UDrawable() {
+ imageBuilder.setUDrawable(new UDrawable() {
public void drawU(UGraphic ug) {
graphicStrings.drawU(ug);
final double height = graphicStrings.calculateDimension(ug.getStringBounder()).getHeight();
@@ -279,7 +279,7 @@ public abstract class UmlDiagram extends AbstractPSystem implements Diagram, Ann
imageBuilder.writeImageTOBEMOVED(fileFormat, os);
}
- private String getFlashData() {
+ public String getFlashData() {
final StringBuilder result = new StringBuilder();
final UmlSource source = getSource();
result.append(source.getPlainString());
@@ -419,4 +419,18 @@ public abstract class UmlDiagram extends AbstractPSystem implements Diagram, Ann
public final void setLegend(DisplayPositionned legend) {
this.legend = legend;
}
+
+ private boolean useJDot;
+
+ public void setUseJDot(boolean useJDot) {
+ this.useJDot = useJDot;
+ }
+
+ public boolean isUseJDot() {
+ return useJDot;
+ }
+
+ public void setDotExecutable(String dotExecutable) {
+ skinParam.setDotExecutable(dotExecutable);
+ }
}