edgeElem.setAttribute("stroke-opacity", (color.getAlpha() / 255f) + "");
edgeElem.setAttribute("fill", "none");
svgTarget.getTopElement(SVGTarget.TOP_EDGES).appendChild(edgeElem);
} else if (renderTarget instanceof PDFTarget) {
PDFTarget pdfTarget = (PDFTarget) renderTarget;
PdfContentByte cb = pdfTarget.getContentByte();
cb.moveTo(x1, -y1);
cb.curveTo(v1.x, -v1.y, v2.x, -v2.y, x2, -y2);
cb.setRGBColorStroke(color.getRed(), color.getGreen(), color.getBlue());
cb.setLineWidth(thickness);
if (color.getAlpha() < 255) {
cb.saveState();
float alpha = color.getAlpha() / 255f;
PdfGState gState = new PdfGState();
gState.setStrokeOpacity(alpha);
cb.setGState(gState);
}
cb.stroke();
if (color.getAlpha() < 255) {
cb.restoreState();
}
}
}