IMPLTYPE - Implementation typepublic abstract class AbstractPLVBox<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>> extends AbstractPLElement<IMPLTYPE> implements IPLHasRowBorder<IMPLTYPE>
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
m_aPreparedRowElementHeight
prepare height (without padding and margin)
|
protected float[] |
m_aPreparedRowElementWidth
prepare width (without padding and margin)
|
protected com.helger.commons.collection.ext.ICommonsList<PLVBoxRow> |
m_aRows |
DEFAULT_MAX_SIZE, DEFAULT_MIN_SIZEDEFAULT_MARGINDEFAULT_PADDINGDEFAULT_BORDERDEFAULT_FILL_COLOR| Constructor and Description |
|---|
AbstractPLVBox() |
| Modifier and Type | Method and Description |
|---|---|
PLVBoxRow |
addAndReturnRow(int nIndex,
IPLRenderableObject<?> aElement)
Add a row to this VBox.
|
PLVBoxRow |
addAndReturnRow(IPLRenderableObject<?> aElement)
Add a row to this VBox.
|
IMPLTYPE |
addRow(int nIndex,
IPLRenderableObject<?> aElement)
Add a row to this VBox.
|
IMPLTYPE |
addRow(IPLRenderableObject<?> aElement)
Add a row to this VBox.
|
void |
doPageSetup(PageSetupContext aCtx)
Called after the page was created but before the content stream is created.
|
com.helger.commons.collection.ext.ICommonsList<PLVBoxRow> |
getAllRows() |
PLVBoxRow |
getFirstRow() |
IPLRenderableObject<?> |
getFirstRowElement() |
PLVBoxRow |
getLastRow() |
IPLRenderableObject<?> |
getLastRowElement() |
PLVBoxRow |
getRowAtIndex(int nIndex)
Get the row at the specified index.
|
BorderSpec |
getRowBorder()
Get the border around each contained row.
|
int |
getRowCount() |
IPLRenderableObject<?> |
getRowElementAtIndex(int nIndex)
Get the element in the row at the specified index.
|
Color |
getRowFillColor()
Get the fill color to be used to fill the whole row.
|
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 |
removeRow(int nIndex) |
IMPLTYPE |
setBasicDataFrom(AbstractPLVBox<?> aSource) |
IMPLTYPE |
setRowBorder(BorderSpec aRowBorder)
Set the border around each contained row.
|
IMPLTYPE |
setRowFillColor(Color aRowFillColor)
Set the fill color to be used to fill the whole row.
|
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, waitsetRowBorder, setRowBorder, setRowBorder, setRowBorderBottom, setRowBorderLeft, setRowBorderRight, setRowBorderTopgetAsSplittable, 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, setBorderTophasFillColorprotected final com.helger.commons.collection.ext.ICommonsList<PLVBoxRow> m_aRows
protected float[] m_aPreparedRowElementWidth
protected float[] m_aPreparedRowElementHeight
@Nonnull @OverridingMethodsMustInvokeSuper public IMPLTYPE setBasicDataFrom(@Nonnull AbstractPLVBox<?> aSource)
@Nonnegative public int getRowCount()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<PLVBoxRow> getAllRows()
null.@Nullable public PLVBoxRow getRowAtIndex(@Nonnegative int nIndex)
nIndex - The index to use. Should be ≥ 0.null if an invalid index was provided.@Nullable public PLVBoxRow getFirstRow()
null if no row is present.@Nullable public PLVBoxRow getLastRow()
null if no row is present.@Nullable public IPLRenderableObject<?> getRowElementAtIndex(@Nonnegative int nIndex)
nIndex - The index to use. Should be ≥ 0.null if an invalid index was provided.@Nullable public IPLRenderableObject<?> getFirstRowElement()
null if no row is
present.@Nullable public IPLRenderableObject<?> getLastRowElement()
null if no row is
present.@Nonnull public PLVBoxRow addAndReturnRow(@Nonnull IPLRenderableObject<?> aElement)
aElement - The row to be added. May not be null.@Nonnull public IMPLTYPE addRow(@Nonnull IPLRenderableObject<?> aElement)
aElement - The row to be added. May not be null.@Nonnull public PLVBoxRow addAndReturnRow(@Nonnegative int nIndex, @Nonnull IPLRenderableObject<?> aElement)
nIndex - The index where the row should be added. Must be ≥ 0.aElement - The row to be added. May not be null.@Nonnull public IMPLTYPE addRow(@Nonnegative int nIndex, @Nonnull IPLRenderableObject<?> aElement)
nIndex - The index where the row should be added. Must be ≥ 0.aElement - The row to be added. May not be null.@Nonnull public IMPLTYPE removeRow(@Nonnegative int nIndex)
@Nonnull public final IMPLTYPE setRowBorder(@Nonnull BorderSpec aRowBorder)
setRowBorder in interface IPLHasRowBorder<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>>aRowBorder - The border to set. May not be null.@Nonnull public final BorderSpec getRowBorder()
BorderSpec.BORDER0 which means no border is used.getRowBorder in interface IPLHasRowBorder<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>>null.@Nonnull public IMPLTYPE setRowFillColor(@Nullable Color aRowFillColor)
null
means no fill color.aRowFillColor - The fill color to use. May be null to indicate no fill
color (which is also the default).@Nullable public Color getRowFillColor()
null
means no fill color.null.@OverridingMethodsMustInvokeSuper protected SizeSpec onPrepare(@Nonnull PreparationContext aCtx) throws IOException
AbstractPLRenderableObjectonPrepare in class AbstractPLRenderableObject<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>>aCtx - Preparation context. Never null.null.IOException - on errorpublic void doPageSetup(@Nonnull PageSetupContext aCtx)
IPLRenderableObjectdoPageSetup in interface IPLRenderableObject<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>>aCtx - The current page setup context. Never null.protected void onPerform(@Nonnull RenderingContext aCtx) throws IOException
AbstractPLRenderableObjectonPerform in class AbstractPLRenderableObject<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>>aCtx - Rendering contextIOException - In case of a PDFBox errorpublic String toString()
toString in class AbstractPLElement<IMPLTYPE extends AbstractPLVBox<IMPLTYPE>>Copyright © 2014–2016 Philip Helger. All rights reserved.