public class ImageElement
extends Element
Element.Companion
Constructor and Description |
---|
ImageElement(Element parent,
java.lang.String imagePath,
java.awt.image.BufferedImage bufferedImage) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getImgHeight() |
java.lang.Integer |
getImgWidth() |
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.
|
void |
setImgHeight(java.lang.Integer p) |
void |
setImgWidth(java.lang.Integer p) |
getBackgroundColor, getBorder, getDocument, getFontColor, getFontSize, getHorizontalAlignment, getMargin, getPadding, getParent, getPdFont, height, instanceHeight, render, renderInstance, setBackgroundColor, setBorder, setFontColor, setFontSize, setHorizontalAlignment, setMargin, setPadding, setPdFont
public ImageElement(Element parent, java.lang.String imagePath, java.awt.image.BufferedImage bufferedImage)
public java.lang.Integer getImgHeight()
public void setImgHeight(java.lang.Integer p)
public java.lang.Integer getImgWidth()
public void setImgWidth(java.lang.Integer p)
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.