public static Element createRect(final Document document, final double x, final double y, final double width, final double height, final SVGColor fillColor, final String... attributes) { return createRect(document, x, y, width, height, fillColor.getName(), attributes); }
public static Element createRect(final Document document, final double x, final double y, final double width, final double height, final SVGColor fillColor, final SVGColor strokeColor, final String... attributes) { return createRect(document, x, y, width, height, fillColor.getName(), prepend(attributes, "stroke", strokeColor.getName())); }
public static Element createElement(final Document document, final String tag, final SVGColor fillColor, final String... attributes) { return createElement(document, tag, prepend(attributes, "fill", fillColor.getName())); }
public static Element createLine(final Document document, final double x1, final double y1, final double x2, final double y2, final SVGColor strokeColor, final String... attributes) { return createLine(document, x1, y1, x2, y2, prepend(attributes, "stroke", strokeColor.getName())); }
g1.appendChild(SVGHelper.createText(doc, diagramWidth / 2, 0, label)); final Element ticks = SVGHelper.createElement(doc, "g", "stroke", SVGColor.BLACK.getName(), "stroke-width", "1", "transform", "translate(0,10)"); g1.appendChild(ticks); final DayHolder day = new DayHolder(fromDate);
root.appendChild(g1); g1 = SVGHelper.createElement(doc, "g", "stroke", SVGColor.BLACK.getName()); root.appendChild(g1);