net.sourceforge.plantuml.klimt.drawing.html5.Html5Drawer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.klimt.drawing.html5;
import java.util.ArrayList;
import java.util.List;
import net.sourceforge.plantuml.tikz.TikzGraphics;
public class Html5Drawer {
// ::remove folder when __HAXE__
private int maxX = 10;
private int maxY = 10;
private String strokeStyle = "black";
private String fillStyle = "black";
private List data = new ArrayList<>();
final protected void ensureVisible(double x, double y) {
if (x > maxX) {
maxX = (int) (x + 1);
}
if (y > maxY) {
maxY = (int) (y + 1);
}
}
private static String format(double x) {
return TikzGraphics.format(x);
}
public final void setStrokeColor(String stroke) {
this.strokeStyle = stroke;
}
public final void setFillColor(String fill) {
this.fillStyle = fill;
}
public String generateHtmlCode() {
final StringBuilder sb = new StringBuilder();
ap(sb, "");
ap(sb, "");
ap(sb, "");
ap(sb, "");
ap(sb, "