IMPLTYPE - Implementation typepublic abstract class AbstractPLHBox<IMPLTYPE extends AbstractPLHBox<IMPLTYPE>> extends AbstractPLElement<IMPLTYPE>
| Modifier and Type | Field and Description |
|---|---|
protected com.helger.commons.collection.ext.ICommonsList<PLHBoxColumn> |
m_aColumns |
protected float[] |
m_aPreparedColumnHeight
prepare height (without padding and margin)
|
protected float[] |
m_aPreparedColumnWidth
prepare width (without padding and margin)
|
DEFAULT_MAX_SIZE, DEFAULT_MIN_SIZEDEFAULT_MARGINDEFAULT_PADDINGDEFAULT_BORDERDEFAULT_FILL_COLOR| Constructor and Description |
|---|
AbstractPLHBox() |
| Modifier and Type | Method and Description |
|---|---|
PLHBoxColumn |
addAndReturnColumn(int nIndex,
IPLRenderableObject<?> aElement,
WidthSpec aWidth) |
PLHBoxColumn |
addAndReturnColumn(IPLRenderableObject<?> aElement,
WidthSpec aWidth) |
IMPLTYPE |
addColumn(int nIndex,
IPLRenderableObject<?> aElement,
WidthSpec aWidth) |
IMPLTYPE |
addColumn(IPLRenderableObject<?> aElement,
WidthSpec aWidth) |
void |
doPageSetup(PageSetupContext aCtx)
Called after the page was created but before the content stream is created.
|
com.helger.commons.collection.ext.ICommonsList<PLHBoxColumn> |
getAllColumns() |
PLHBoxColumn |
getColumnAtIndex(int nIndex) |
BorderSpec |
getColumnBorder()
Get the border around each contained column.
|
int |
getColumnCount() |
IPLRenderableObject<?> |
getColumnElementAtIndex(int nIndex) |
Color |
getColumnFillColor()
Get the fill color to be used to fill the whole column.
|
PLHBoxColumn |
getFirstColumn() |
IPLRenderableObject<?> |
getFirstColumnElement() |
PLHBoxColumn |
getLastColumn() |
IPLRenderableObject<?> |
getLastColumnElement() |
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.
|
IMPLTYPE |
removeColumn(int nIndex) |
IMPLTYPE |
setBasicDataFrom(AbstractPLHBox<?> aSource) |
IMPLTYPE |
setColumnBorder(BorderSpec aBorder)
Set the border around each contained column.
|
IMPLTYPE |
setColumnBorder(BorderStyleSpec aBorder)
Set the border around each contained column.
|
IMPLTYPE |
setColumnBorder(BorderStyleSpec aBorderY,
BorderStyleSpec aBorderX)
Set the border around each contained column.
|
IMPLTYPE |
setColumnBorder(BorderStyleSpec aBorderTop,
BorderStyleSpec aBorderRight,
BorderStyleSpec aBorderBottom,
BorderStyleSpec aBorderLeft)
Set the border around each contained column.
|
IMPLTYPE |
setColumnBorderBottom(BorderStyleSpec aBorder)
Set the bottom border value around each contained column.
|
IMPLTYPE |
setColumnBorderLeft(BorderStyleSpec aBorder)
Set the left border value around each contained column.
|
IMPLTYPE |
setColumnBorderRight(BorderStyleSpec aBorder)
Set the right border value around each contained column.
|
IMPLTYPE |
setColumnBorderTop(BorderStyleSpec aBorder)
Set the top border value around each contained column.
|
IMPLTYPE |
setColumnFillColor(Color aColumnFillColor)
Set the fill color to be used to fill the whole column.
|
String |
toString() |
getBorder, 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, waitgetMaxSize, 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, setBorderTopgetAsSplittable, getDebugID, isSplittablehasFillColorprotected final com.helger.commons.collection.ext.ICommonsList<PLHBoxColumn> m_aColumns
protected float[] m_aPreparedColumnWidth
protected float[] m_aPreparedColumnHeight
@Nonnull @OverridingMethodsMustInvokeSuper public IMPLTYPE setBasicDataFrom(@Nonnull AbstractPLHBox<?> aSource)
@Nonnegative public int getColumnCount()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PLHBoxColumn> getAllColumns()
null.@Nullable public PLHBoxColumn getColumnAtIndex(@Nonnegative int nIndex)
@Nullable public PLHBoxColumn getFirstColumn()
@Nullable public PLHBoxColumn getLastColumn()
@Nullable public IPLRenderableObject<?> getColumnElementAtIndex(@Nonnegative int nIndex)
@Nullable public IPLRenderableObject<?> getFirstColumnElement()
@Nullable public IPLRenderableObject<?> getLastColumnElement()
@Nonnull public PLHBoxColumn addAndReturnColumn(@Nonnull IPLRenderableObject<?> aElement, @Nonnull WidthSpec aWidth)
@Nonnull public IMPLTYPE addColumn(@Nonnull IPLRenderableObject<?> aElement, @Nonnull WidthSpec aWidth)
@Nonnull public PLHBoxColumn addAndReturnColumn(@Nonnegative int nIndex, @Nonnull IPLRenderableObject<?> aElement, @Nonnull WidthSpec aWidth)
@Nonnull public IMPLTYPE addColumn(@Nonnegative int nIndex, @Nonnull IPLRenderableObject<?> aElement, @Nonnull WidthSpec aWidth)
@Nonnull public IMPLTYPE removeColumn(@Nonnegative int nIndex)
@Nonnull public final IMPLTYPE setColumnBorder(@Nullable BorderStyleSpec aBorder)
aBorder - The border style to use. May be null.@Nonnull public final IMPLTYPE setColumnBorder(@Nullable BorderStyleSpec aBorderY, @Nullable BorderStyleSpec aBorderX)
aBorderY - The border to set for top and bottom. Maybe null.aBorderX - The border to set for left and right. Maybe null.@Nonnull public final IMPLTYPE setColumnBorder(@Nullable BorderStyleSpec aBorderTop, @Nullable BorderStyleSpec aBorderRight, @Nullable BorderStyleSpec aBorderBottom, @Nullable BorderStyleSpec aBorderLeft)
aBorderTop - The border to set for top. Maybe null.aBorderRight - The border to set for right. Maybe null.aBorderBottom - The border to set for bottom. Maybe null.aBorderLeft - The border to set for left. Maybe null.@Nonnull public final IMPLTYPE setColumnBorder(@Nonnull BorderSpec aBorder)
aBorder - The border to set. May not be null.@Nonnull public final IMPLTYPE setColumnBorderTop(@Nullable BorderStyleSpec aBorder)
aBorder - The value to use. May be null.@Nonnull public final IMPLTYPE setColumnBorderRight(@Nullable BorderStyleSpec aBorder)
aBorder - The value to use. May be null.@Nonnull public final IMPLTYPE setColumnBorderBottom(@Nullable BorderStyleSpec aBorder)
aBorder - The value to use. May be null.@Nonnull public final IMPLTYPE setColumnBorderLeft(@Nullable BorderStyleSpec aBorder)
aBorder - The value to use. May be null.@Nonnull public final BorderSpec getColumnBorder()
BorderSpec.BORDER0 which means no border is used.null.@Nonnull public IMPLTYPE setColumnFillColor(@Nullable Color aColumnFillColor)
null
means no fill color.aColumnFillColor - The fill color to use. May be null to indicate no fill
color (which is also the default).@Nullable public Color getColumnFillColor()
null
means no fill color.null.@OverridingMethodsMustInvokeSuper protected SizeSpec onPrepare(@Nonnull PreparationContext aCtx) throws IOException
AbstractPLRenderableObjectonPrepare in class AbstractPLRenderableObject<IMPLTYPE extends AbstractPLHBox<IMPLTYPE>>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<IMPLTYPE extends AbstractPLHBox<IMPLTYPE>>aCtx - Rendering contextIOException - In case of a PDFBox errorpublic String toString()
toString in class AbstractPLElement<IMPLTYPE extends AbstractPLHBox<IMPLTYPE>>Copyright © 2014–2016 Philip Helger. All rights reserved.