1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-30 00:33:53 +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