public class TextElement
extends Element
Element.Companion
Constructor and Description |
---|
TextElement(Element parent,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
float |
instanceHeight(float width,
float startY)
Determines the innermost height of the element, excluding margins and padding.
|
void |
renderInstance(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
float startX,
float endX,
float startY,
float minHeight)
Renders the innermost element, excluding margins, padding, borders, and background.
|
java.util.List<java.lang.String> |
wrapText(float width) |
getBackgroundColor, getBorder, getDocument, getFontColor, getFontSize, getHorizontalAlignment, getMargin, getPadding, getParent, getPdFont, height, instanceHeight, render, renderInstance, setBackgroundColor, setBorder, setFontColor, setFontSize, setHorizontalAlignment, setMargin, setPadding, setPdFont
public TextElement(Element parent, java.lang.String value)
public float instanceHeight(float width, float startY)
Determines the innermost height of the element, excluding margins and padding.
public void renderInstance(org.apache.pdfbox.pdmodel.PDDocument pdDocument, float startX, float endX, float startY, float minHeight)
Renders the innermost element, excluding margins, padding, borders, and background.
public java.util.List<java.lang.String> wrapText(float width)
public java.lang.String getValue()