public class BorderDrawer extends AbstractDrawer
Modifier and Type | Field and Description |
---|---|
protected List<CornerFormattingElement> |
borderCorners |
protected List<FormattingElement> |
borderEdges |
protected FormNode |
borderNode |
protected Integer |
combElementCellsNumber |
protected Boolean |
fill |
protected com.itextpdf.text.BaseColor |
fillColor |
protected boolean |
isCombElementBorder |
accessibleAttributes, id, role
Constructor and Description |
---|
BorderDrawer(FormNode border) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateStyle() |
void |
draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle borderArea) |
protected boolean |
drawCombElementLines(FormattingElement bottom, FormattingElement vertical, com.itextpdf.text.pdf.PdfContentByte canvas, boolean saveState) |
protected boolean |
drawCorner(CornerFormattingElement fe, com.itextpdf.text.pdf.PdfContentByte canvas, boolean saveState) |
protected boolean |
drawEdge(FormattingElement fe, com.itextpdf.text.pdf.PdfContentByte canvas, boolean saveState) |
float[] |
getBorderThicknesses() |
boolean |
hasEmbossedStyle()
See border styles in XFA
|
protected void |
initBorderCorners() |
protected void |
initBorderEdges(boolean empty) |
boolean |
isEmpty() |
static boolean |
isEmpty(FormNode border) |
protected void |
setBorderCornerPoints(float llx, float lly, float urx, float ury) |
protected void |
setBorderEdgePoints(float llx, float lly, float urx, float ury) |
void |
setCombElementBorder(int combElementCellsNumber) |
protected void |
setLineDash(com.itextpdf.text.pdf.PdfContentByte canvas, FormattingElement fe) |
protected void |
updateBorderLinesPoints(XFARectangle rec) |
getAccessibleAttribute, getAccessibleAttributes, getId, getRole, isInline, setAccessibleAttribute, setId, setRole
protected Boolean fill
protected com.itextpdf.text.BaseColor fillColor
protected List<FormattingElement> borderEdges
protected List<CornerFormattingElement> borderCorners
protected FormNode borderNode
protected boolean isCombElementBorder
protected Integer combElementCellsNumber
public BorderDrawer(FormNode border)
public static boolean isEmpty(FormNode border)
public void draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle borderArea)
draw
in class AbstractDrawer
protected boolean drawEdge(FormattingElement fe, com.itextpdf.text.pdf.PdfContentByte canvas, boolean saveState)
protected boolean drawCombElementLines(FormattingElement bottom, FormattingElement vertical, com.itextpdf.text.pdf.PdfContentByte canvas, boolean saveState)
protected boolean drawCorner(CornerFormattingElement fe, com.itextpdf.text.pdf.PdfContentByte canvas, boolean saveState)
public boolean isEmpty()
isEmpty
in class AbstractDrawer
public float[] getBorderThicknesses()
public boolean hasEmbossedStyle()
protected void updateBorderLinesPoints(XFARectangle rec)
protected void setBorderEdgePoints(float llx, float lly, float urx, float ury)
protected void setBorderCornerPoints(float llx, float lly, float urx, float ury)
protected void initBorderEdges(boolean empty)
protected void initBorderCorners()
protected void calculateStyle()
protected void setLineDash(com.itextpdf.text.pdf.PdfContentByte canvas, FormattingElement fe)
public void setCombElementBorder(int combElementCellsNumber)
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.