public abstract class Element extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
attributes |
protected BorderDrawer |
borderDrawer |
protected com.itextpdf.text.Document |
document |
protected XFARectangle |
elementRec |
protected FormNode |
elementTag |
protected boolean |
isDrawElement |
protected Map<String,String> |
para |
Constructor and Description |
---|
Element(FormNode elementTag, XFARectangle elementRec, com.itextpdf.text.Document document) |
Modifier and Type | Method and Description |
---|---|
PositionResult.State |
draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) |
void |
drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) |
void |
drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle rec, XFARectangle parentBoundingBox) |
XFARectangle |
getElementRec() |
boolean |
isEmpty() |
boolean |
isTagged() |
void |
move(float dx, float dy) |
void |
setIsDrawElement(boolean isDrawElement) |
PositionResult |
simulatePosition(XFARectangle parentBoundingBox) |
protected FormNode elementTag
protected XFARectangle elementRec
protected final com.itextpdf.text.Document document
protected BorderDrawer borderDrawer
protected boolean isDrawElement
public Element(FormNode elementTag, XFARectangle elementRec, com.itextpdf.text.Document document)
public PositionResult.State draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
com.itextpdf.text.DocumentException
IOException
public void drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox)
public void drawBorder(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle rec, XFARectangle parentBoundingBox)
public boolean isEmpty()
public boolean isTagged()
public XFARectangle getElementRec()
public PositionResult simulatePosition(XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
com.itextpdf.text.DocumentException
IOException
public void setIsDrawElement(boolean isDrawElement)
public void move(float dx, float dy)
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.