public class PLImage extends AbstractPLAlignedElement<PLImage>
DEFAULT_HORZ_ALIGNMENTDEFAULT_VERT_ALIGNMENTDEFAULT_MAX_SIZE, DEFAULT_MIN_SIZEDEFAULT_MARGINDEFAULT_PADDINGDEFAULT_BORDERDEFAULT_FILL_COLOR| Constructor and Description |
|---|
PLImage(BufferedImage aImage) |
PLImage(BufferedImage aImage,
float fWidth,
float fHeight) |
PLImage(com.helger.commons.io.IHasInputStream aImage,
float fWidth,
float fHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
doPageSetup(PageSetupContext aCtx)
Called after the page was created but before the content stream is created.
|
float |
getHeight() |
com.helger.commons.io.IHasInputStream |
getIIS() |
BufferedImage |
getImage() |
float |
getWidth() |
protected void |
onPerform(RenderingContext aCtx)
Abstract method to be implemented by subclasses.
|
protected SizeSpec |
onPrepare(PreparationContext aCtx)
The abstract method that must be implemented by all subclasses.
|
PLImage |
setBasicDataFrom(PLImage aSource) |
String |
toString() |
getHorzAlign, getVertAlign, setBasicDataFrom, setHorzAlign, setVertAligngetBorder, getFillColor, getMargin, getPadding, setBasicDataFrom, setBorder, setFillColor, setMargin, setPaddinggetMaxSize, getMinSize, getPreparedSize, internalCheckNotPrepared, internalMarkAsNotPrepared, internalMarkAsPrepared, isPrepared, onPerformFillAndBorder, perform, prepare, setMaxSize, setMinSizegetDebugID, getID, setBasicDataFrom, setIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsSplittable, getDebugID, isSplittablegetMaxSize, getMinSize, getPreparedSize, isPrepared, perform, prepare, setExactSize, setMaxSize, setMinSizegetFullBottom, getFullLeft, getFullRight, getFullTop, getFullXSum, getFullYSum, getMarginAndBorderBottom, getMarginAndBorderLeft, getMarginAndBorderRight, getMarginAndBorderTop, getMarginAndBorderXSum, getMarginAndBorderYSumgetMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginXSum, getMarginYSum, setMargin, setMargin, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopgetPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTopgetBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getBorderXSumWidth, getBorderYSumWidth, setBorder, setBorder, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTophasFillColorpublic PLImage(@Nonnull BufferedImage aImage)
public PLImage(@Nonnull BufferedImage aImage, @Nonnegative float fWidth, @Nonnegative float fHeight)
public PLImage(@Nonnull com.helger.commons.io.IHasInputStream aImage, @Nonnegative float fWidth, @Nonnegative float fHeight)
@Nullable public BufferedImage getImage()
@Nullable public com.helger.commons.io.IHasInputStream getIIS()
public float getWidth()
public float getHeight()
@Nonnull @OverridingMethodsMustInvokeSuper public PLImage setBasicDataFrom(@Nonnull PLImage aSource)
protected SizeSpec onPrepare(@Nonnull PreparationContext aCtx) throws IOException
AbstractPLRenderableObjectonPrepare in class AbstractPLRenderableObject<PLImage>aCtx - Preparation context. Never null.null.IOException - on errorpublic void doPageSetup(@Nonnull PageSetupContext aCtx)
IPLRenderableObjectaCtx - The current page setup context. Never null.protected void onPerform(@Nonnull RenderingContext aCtx) throws IOException
AbstractPLRenderableObjectonPerform in class AbstractPLRenderableObject<PLImage>aCtx - Rendering contextIOException - In case of a PDFBox errorpublic String toString()
toString in class AbstractPLAlignedElement<PLImage>Copyright © 2014–2016 Philip Helger. All rights reserved.