"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/net/sourceforge/plantuml/ugraphic/ImageBuilder.java" between
plantuml-1.2019.11.tar.gz and plantuml-1.2019.12.tar.gz

About: PlantUML is a tool (written in Java) to draw UML diagrams, using a simple and human readable text description. Sources.

ImageBuilder.java  (plantuml-1.2019.11):ImageBuilder.java  (plantuml-1.2019.12)
skipping to change at line 396 skipping to change at line 396
} }
private UGraphic2 createUGraphic(FileFormatOption fileFormatOption, long seed, final Dimension2D dim, private UGraphic2 createUGraphic(FileFormatOption fileFormatOption, long seed, final Dimension2D dim,
Animation animationArg, double dx, double dy) { Animation animationArg, double dx, double dy) {
final FileFormat fileFormat = fileFormatOption.getFileFormat(); final FileFormat fileFormat = fileFormatOption.getFileFormat();
switch (fileFormat) { switch (fileFormat) {
case PNG: case PNG:
return createUGraphicPNG(colorMapper, dpiFactor, dim, myb ackcolor, animationArg, dx, dy); return createUGraphicPNG(colorMapper, dpiFactor, dim, myb ackcolor, animationArg, dx, dy);
case SVG: case SVG:
return createUGraphicSVG(colorMapper, dpiFactor, dim, myb ackcolor, fileFormatOption.getSvgLinkTarget(), return createUGraphicSVG(colorMapper, dpiFactor, dim, myb ackcolor, fileFormatOption.getSvgLinkTarget(),
fileFormatOption.getHoverColor(), seed); fileFormatOption.getHoverColor(), seed, f ileFormatOption.getPreserveAspectRatio());
case EPS: case EPS:
return new UGraphicEps(colorMapper, EpsStrategy.getDefaul t2()); return new UGraphicEps(colorMapper, EpsStrategy.getDefaul t2());
case EPS_TEXT: case EPS_TEXT:
return new UGraphicEps(colorMapper, EpsStrategy.WITH_MACR O_AND_TEXT); return new UGraphicEps(colorMapper, EpsStrategy.WITH_MACR O_AND_TEXT);
case HTML5: case HTML5:
return new UGraphicHtml5(colorMapper); return new UGraphicHtml5(colorMapper);
case VDX: case VDX:
return new UGraphicVdx(colorMapper); return new UGraphicVdx(colorMapper);
case LATEX: case LATEX:
return new UGraphicTikz(colorMapper, dpiFactor, true, fil eFormatOption.getTikzFontDistortion()); return new UGraphicTikz(colorMapper, dpiFactor, true, fil eFormatOption.getTikzFontDistortion());
skipping to change at line 420 skipping to change at line 420
return new UGraphicBraille(colorMapper, fileFormat); return new UGraphicBraille(colorMapper, fileFormat);
case UTXT: case UTXT:
case ATXT: case ATXT:
return new UGraphicTxt(); return new UGraphicTxt();
default: default:
throw new UnsupportedOperationException(fileFormat.toStri ng()); throw new UnsupportedOperationException(fileFormat.toStri ng());
} }
} }
private UGraphic2 createUGraphicSVG(ColorMapper colorMapper, double scale , Dimension2D dim, HtmlColor mybackcolor, private UGraphic2 createUGraphicSVG(ColorMapper colorMapper, double scale , Dimension2D dim, HtmlColor mybackcolor,
String svgLinkTarget, String hover, long seed) { String svgLinkTarget, String hover, long seed, String pre serveAspectRatio) {
Color backColor = Color.WHITE; Color backColor = Color.WHITE;
if (mybackcolor instanceof HtmlColorSimple) { if (mybackcolor instanceof HtmlColorSimple) {
backColor = colorMapper.getMappedColor(mybackcolor); backColor = colorMapper.getMappedColor(mybackcolor);
} }
final UGraphicSvg ug; final UGraphicSvg ug;
if (mybackcolor instanceof HtmlColorGradient) { if (mybackcolor instanceof HtmlColorGradient) {
ug = new UGraphicSvg(svgDimensionStyle, dim, colorMapper, (HtmlColorGradient) mybackcolor, false, scale, ug = new UGraphicSvg(svgDimensionStyle, dim, colorMapper, (HtmlColorGradient) mybackcolor, false, scale,
svgLinkTarget, hover, seed); svgLinkTarget, hover, seed, preserveAspec tRatio);
} else if (backColor == null || backColor.equals(Color.WHITE)) { } else if (backColor == null || backColor.equals(Color.WHITE)) {
ug = new UGraphicSvg(svgDimensionStyle, dim, colorMapper, false, scale, svgLinkTarget, hover, seed); ug = new UGraphicSvg(svgDimensionStyle, dim, colorMapper, false, scale, svgLinkTarget, hover, seed, preserveAspectRatio);
} else { } else {
ug = new UGraphicSvg(svgDimensionStyle, dim, colorMapper, StringUtils.getAsHtml(backColor), false, scale, ug = new UGraphicSvg(svgDimensionStyle, dim, colorMapper, StringUtils.getAsHtml(backColor), false, scale,
svgLinkTarget, hover, seed); svgLinkTarget, hover, seed, preserveAspec tRatio);
} }
return ug; return ug;
} }
private UGraphic2 createUGraphicPNG(ColorMapper colorMapper, double dpiFa ctor, final Dimension2D dim, private UGraphic2 createUGraphicPNG(ColorMapper colorMapper, double dpiFa ctor, final Dimension2D dim,
HtmlColor mybackcolor, Animation affineTransforms, double dx, double dy) { HtmlColor mybackcolor, Animation affineTransforms, double dx, double dy) {
Color backColor = Color.WHITE; Color backColor = Color.WHITE;
if (mybackcolor instanceof HtmlColorSimple) { if (mybackcolor instanceof HtmlColorSimple) {
backColor = colorMapper.getMappedColor(mybackcolor); backColor = colorMapper.getMappedColor(mybackcolor);
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)