fix exporter to freemind issues (shape, font styles and font sizes)

This commit is contained in:
Claudio Barril
2014-09-08 14:36:49 -03:00
parent 013a31ca6e
commit 77a087277a
29 changed files with 890 additions and 1066 deletions

View File

@@ -23,7 +23,8 @@ public enum ShapeStyle
LINE("line"),
ROUNDED_RECTANGLE("rounded rectagle"),
RECTANGLE("rectagle"),
ELLIPSE("elipse");
ELLIPSE("elipse"),
IMAGE("image");
private String style;
@@ -35,5 +36,14 @@ public enum ShapeStyle
public String getStyle()
{
return style;
}
}
public static ShapeStyle fromValue(String value) {
for (ShapeStyle shapeStyle : ShapeStyle.values()) {
if (shapeStyle.getStyle().equals(value)) {
return shapeStyle;
}
}
throw new IllegalArgumentException("Shape value \"" + value + "\" doesn't match with a value shape style.");
}
}