public void renderPDF(PDFTarget target, String label, float x, float y, Color color, float outlineSize, Color outlineColor) { PdfContentByte cb = target.getContentByte(); cb.setRGBColorFill(color.getRed(), color.getGreen(), color.getBlue()); BaseFont bf = target.getBaseFont(font); float textHeight = getTextHeight(bf, font.getSize(), label); if (outlineSize > 0) {
} else if (target instanceof PDFTarget) { final PDFTarget pdfTarget = (PDFTarget) target; final PdfContentByte cb = pdfTarget.getContentByte(); cb.moveTo(h.x, -h.y); cb.curveTo(h.v1.x, -h.v1.y, h.v2.x, -h.v2.y, h.x, -h.y);
} else if (target instanceof PDFTarget) { final PDFTarget pdfTarget = (PDFTarget) target; final PdfContentByte cb = pdfTarget.getContentByte(); cb.moveTo(h.p1.x, -h.p1.y); cb.lineTo(h.p2.x, -h.p2.y);
public void renderPDF(PDFTarget target, Node node, String label, float x, float y, int fontSize, Color color, float outlineSize, Color outlineColor, boolean showBox, Color boxColor) { Font font = fontCache.get(fontSize); PdfContentByte cb = target.getContentByte(); BaseFont bf = target.getBaseFont(font);
} else if (target instanceof PDFTarget) { final PDFTarget pdfTarget = (PDFTarget) target; final PdfContentByte cb = pdfTarget.getContentByte(); cb.moveTo(h.x1, -h.y1); cb.lineTo(h.x2, -h.y2);
} else if (target instanceof PDFTarget) { final PDFTarget pdfTarget = (PDFTarget) target; final PdfContentByte cb = pdfTarget.getContentByte(); cb.moveTo(h.x1, -h.y1); cb.curveTo(h.v1.x, -h.v1.y, h.v2.x, -h.v2.y, h.x2, -h.y2);
properties.getFloatValue(PreviewProperty.NODE_OPACITY) / 100f; PdfContentByte cb = target.getContentByte(); cb.setRGBColorStroke(borderColor.getRed(), borderColor.getGreen(), borderColor.getBlue()); cb.setLineWidth(borderSize);