1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-26 14:56:28 +00:00

Simplify UGraphicTikz constructors

This commit is contained in:
matthew16550 2021-10-03 04:36:02 +11:00
parent eecb097640
commit f1bff6dde6

View File

@ -59,15 +59,9 @@ import net.sourceforge.plantuml.ugraphic.color.HColor;
public class UGraphicTikz extends AbstractUGraphic<TikzGraphics> implements ClipContainer { public class UGraphicTikz extends AbstractUGraphic<TikzGraphics> implements ClipContainer {
private UGraphicTikz(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, TikzGraphics tikz) {
super(defaultBackground, colorMapper, stringBounder, tikz);
register();
}
public UGraphicTikz(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, double scale, boolean withPreamble) { public UGraphicTikz(HColor defaultBackground, ColorMapper colorMapper, StringBounder stringBounder, double scale, boolean withPreamble) {
this(defaultBackground, colorMapper, stringBounder, new TikzGraphics(scale, withPreamble)); super(defaultBackground, colorMapper, stringBounder, new TikzGraphics(scale, withPreamble));
register();
} }
@Override @Override