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())); }
ticks.appendChild(SVGHelper.createLine(doc, getXValue(day.getDate()), 12, getXValue(day.getDate()), 20)); } else if (drawTick == true) { ticks.appendChild(SVGHelper.createLine(doc, getXValue(day.getDate()), 15, getXValue(day.getDate()), 20)); } else if (drawTick2 == true) { ticks.appendChild(SVGHelper.createLine(doc, getXValue(day.getDate()), 18, getXValue(day.getDate()), 20)); grid.appendChild(SVGHelper.createLine(doc, getXValue(day.getDate()), 0, getXValue(day.getDate()), xGridHeight)); ticks.appendChild(SVGHelper.createLine(doc, 0, 0, diagramWidth, 0)); ticks.appendChild(SVGHelper.createLine(doc, 0, 0, 0, 20));
first = false; } else { grid.appendChild(SVGHelper.createLine(doc, 0, taskInfo.y, getDiagramWidth(), taskInfo.y));
final DateHolder today = new DateHolder(); if (today.isBetween(fromDate, toDate) == true) { diagram.appendChild(SVGHelper.createLine(doc, getXValue(today.getDate()), 0, getXValue(today.getDate()), getDiagramHeight(), SVGColor.RED, "stroke-width", "2")); g1.appendChild(SVGHelper.createLine(doc, 0, 50, style.getWidth(), 50, "stroke-width", "2")); g1.appendChild(SVGHelper.createLine(doc, style.getTotalLabelWidth(), 50, style.getTotalLabelWidth(), height, "stroke-width", "2"));