IMPLTYPE - Implementation typepublic interface IPLRenderableObject<IMPLTYPE extends IPLRenderableObject<IMPLTYPE>> extends IPLObject<IMPLTYPE>, IPLHasOutline
| Modifier and Type | Field and Description |
|---|---|
static SizeSpec |
DEFAULT_MAX_SIZE |
static SizeSpec |
DEFAULT_MIN_SIZE |
| Modifier and Type | Method and Description |
|---|---|
default void |
doPageSetup(PageSetupContext aCtx)
Called after the page was created but before the content stream is created.
|
SizeSpec |
getMaxSize() |
SizeSpec |
getMinSize() |
SizeSpec |
getPreparedSize() |
boolean |
isPrepared() |
void |
perform(RenderingContext aCtx)
Second step: perform.
|
SizeSpec |
prepare(PreparationContext aCtx)
Prepare this element once for rendering.
|
default IMPLTYPE |
setExactSize(float fWidth,
float fHeight)
Set the exact size to be used.
|
IMPLTYPE |
setMaxSize(float fMaxWidth,
float fMaxHeight)
Set the maximum size to be used.
|
IMPLTYPE |
setMinSize(float fMinWidth,
float fMinHeight)
Set the minimum size to be used.
|
getAsSplittable, getDebugID, isSplittablegetFullBottom, getFullLeft, getFullRight, getFullTop, getFullXSum, getFullYSumstatic final SizeSpec DEFAULT_MIN_SIZE
static final SizeSpec DEFAULT_MAX_SIZE
@Nonnull SizeSpec getMinSize()
null.@Nonnull IMPLTYPE setMinSize(@Nonnegative float fMinWidth, @Nonnegative float fMinHeight)
fMinWidth - Minimum width. Must be ≥ 0.fMinHeight - Minimum height. Must be ≥ 0.@Nonnull SizeSpec getMaxSize()
null.@Nonnull IMPLTYPE setMaxSize(@Nonnegative float fMaxWidth, @Nonnegative float fMaxHeight)
fMaxWidth - Maximum width. Must be ≥ 0.fMaxHeight - Maximum height. Must be ≥ 0.@Nonnull default IMPLTYPE setExactSize(@Nonnegative float fWidth, @Nonnegative float fHeight)
fWidth - Width to use. Must be ≥ 0.fHeight - Height to use. Must be ≥ 0.boolean isPrepared()
true if this object was already prepared,
false otherwise.@Nullable SizeSpec getPreparedSize()
null if this object was not yet
prepared.isPrepared()@Nonnull SizeSpec prepare(@Nonnull PreparationContext aCtx) throws IOException
aCtx - The preparation contextnull.IOException - if already preparedperform(RenderingContext)default void doPageSetup(@Nonnull PageSetupContext aCtx)
aCtx - The current page setup context. Never null.@Nonnegative void perform(@Nonnull RenderingContext aCtx) throws IOException
aCtx - Rendering contextIOException - In case of a PDFBox errorprepare(PreparationContext)Copyright © 2014–2016 Philip Helger. All rights reserved.