public abstract class UiElement extends Element
Modifier and Type | Field and Description |
---|---|
protected ContentElement |
contentElement |
protected Integer |
independentRotateAngle |
protected PositionResult.State |
positionState |
attributes, borderDrawer, document, elementRec, elementTag, isDrawElement, para
Constructor and Description |
---|
UiElement(FormNode elementTag, XFARectangle elementRec, com.itextpdf.text.Document document) |
UiElement(FormNode elementTag, XFARectangle elementRec, com.itextpdf.text.Document document, ContentElement contentElement) |
Modifier and Type | Method and Description |
---|---|
void |
applyMargins(XFARectangle rectangle) |
PositionResult.State |
draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) |
ContentElement |
getContentElement() |
Integer |
getIndependentRotateAngle() |
boolean |
isEmpty() |
boolean |
isTagged() |
protected abstract boolean |
isTextWidget() |
void |
move(float dx, float dy) |
void |
setIndependentRotateAngle(Integer independentRotateAngle) |
PositionResult |
simulatePosition(XFARectangle parentBoundingBox) |
void |
unapplyMargins(XFARectangle rectangle) |
drawBorder, drawBorder, getElementRec, setIsDrawElement
protected ContentElement contentElement
protected PositionResult.State positionState
protected Integer independentRotateAngle
public UiElement(FormNode elementTag, XFARectangle elementRec, com.itextpdf.text.Document document)
public UiElement(FormNode elementTag, XFARectangle elementRec, com.itextpdf.text.Document document, ContentElement contentElement)
public PositionResult.State draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
draw
in class Element
com.itextpdf.text.DocumentException
IOException
public PositionResult simulatePosition(XFARectangle parentBoundingBox) throws com.itextpdf.text.DocumentException, IOException
simulatePosition
in class Element
com.itextpdf.text.DocumentException
IOException
public void applyMargins(XFARectangle rectangle)
public void unapplyMargins(XFARectangle rectangle)
public ContentElement getContentElement()
protected abstract boolean isTextWidget()
public Integer getIndependentRotateAngle()
public void setIndependentRotateAngle(Integer independentRotateAngle)
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.