Package com.helger.pdflayout.base
Class AbstractPLBlockElement<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>
java.lang.Object
com.helger.pdflayout.base.AbstractPLObject<IMPLTYPE>
com.helger.pdflayout.base.AbstractPLRenderableObject<IMPLTYPE>
com.helger.pdflayout.base.AbstractPLElement<IMPLTYPE>
com.helger.pdflayout.base.AbstractPLBlockElement<IMPLTYPE>
- Type Parameters:
IMPLTYPE- The implementation type of this class.
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,IPLBlockElement<IMPLTYPE>,IPLElement<IMPLTYPE>,IPLHasBorder<IMPLTYPE>,IPLHasFillColor<IMPLTYPE>,IPLHasHorizontalAlignment<IMPLTYPE>,IPLHasMargin<IMPLTYPE>,IPLHasMarginBorderPadding<IMPLTYPE>,IPLHasOutline,IPLHasPadding<IMPLTYPE>,IPLHasVerticalAlignment<IMPLTYPE>,IPLObject<IMPLTYPE>,IPLRenderableObject<IMPLTYPE>,IPLVisitable
- Direct Known Subclasses:
AbstractPLBox
public abstract class AbstractPLBlockElement<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>
extends AbstractPLElement<IMPLTYPE>
implements IPLBlockElement<IMPLTYPE>
Abstract implementation of
IPLBlockElement.- Author:
- Philip Helger
-
Field Summary
Fields inherited from interface com.helger.pdflayout.base.IPLBlockElement
DEFAULT_FULL_WIDTHFields inherited from interface com.helger.pdflayout.base.IPLElement
DEFAULT_MAX_SIZE, DEFAULT_MIN_SIZEFields inherited from interface com.helger.pdflayout.base.IPLHasBorder
DEFAULT_BORDERFields inherited from interface com.helger.pdflayout.base.IPLHasFillColor
DEFAULT_FILL_COLORFields inherited from interface com.helger.pdflayout.base.IPLHasHorizontalAlignment
DEFAULT_HORZ_ALIGNMENTFields inherited from interface com.helger.pdflayout.base.IPLHasMargin
DEFAULT_MARGINFields inherited from interface com.helger.pdflayout.base.IPLHasPadding
DEFAULT_PADDINGFields inherited from interface com.helger.pdflayout.base.IPLHasVerticalAlignment
DEFAULT_VERT_ALIGNMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal EHorzAlignmentfinal EVertAlignmentfinal booleansetBasicDataFrom(IMPLTYPE aSource) For copying stuff internally.final IMPLTYPEsetFullWidth(boolean bFullWidth) Set usage of full width.final IMPLTYPEsetHorzAlign(EHorzAlignment eHorzAlign) Set the horizontal alignment of this element.final IMPLTYPEsetVertAlign(EVertAlignment eVertAlign) Set the vertical alignment of this element.toString()Methods inherited from class com.helger.pdflayout.base.AbstractPLElement
getBorder, getFillColor, getMargin, getMaxSize, getMinSize, getPadding, getRenderSize, setBorder, setFillColor, setMargin, setMaxSize, setMinSize, setPaddingMethods inherited from class com.helger.pdflayout.base.AbstractPLRenderableObject
getPrepareAvailableSize, getPreparedSize, getRenderSize, internalCheckAlreadyPrepared, internalCheckNotPrepared, internalMarkAsNotPrepared, internalMarkAsNotPreparedDontPropagate, internalMarkAsPrepared, isPrepared, onMarkAsNotPrepared, onPrepare, onRender, onRenderSizeChange, prepare, render, visitMethods inherited from class com.helger.pdflayout.base.AbstractPLObject
getDebugID, getID, onAfterSetID, setIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.id.IHasID
getIDMethods inherited from interface com.helger.pdflayout.base.IPLElement
getMaxHeight, getMaxSize, getMaxWidth, getMinHeight, getMinSize, getMinWidth, setExactHeight, setExactSize, setExactWidth, setMaxHeight, setMaxSize, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinSize, setMinWidthMethods inherited from interface com.helger.pdflayout.base.IPLHasBorder
getBorder, getBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getBorderXSumWidth, getBorderYSumWidth, setBorder, setBorder, setBorder, setBorder, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setBorderX, setBorderYMethods inherited from interface com.helger.pdflayout.base.IPLHasFillColor
getFillColor, hasFillColor, setFillColorMethods inherited from interface com.helger.pdflayout.base.IPLHasHorizontalAlignment
getIndentXMethods inherited from interface com.helger.pdflayout.base.IPLHasMargin
addMarginBottom, addMarginLeft, addMarginRight, addMarginTop, addMarginX, addMarginY, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginXSum, getMarginYSum, setMargin, setMargin, setMargin, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarginX, setMarginYMethods inherited from interface com.helger.pdflayout.base.IPLHasMarginBorderPadding
getOutlineBottom, getOutlineLeft, getOutlineRight, getOutlineTop, getOutlineXSum, getOutlineYSumMethods inherited from interface com.helger.pdflayout.base.IPLHasPadding
addPaddingBottom, addPaddingLeft, addPaddingRight, addPaddingTop, addPaddingX, addPaddingY, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPaddingX, setPaddingYMethods inherited from interface com.helger.pdflayout.base.IPLHasVerticalAlignment
getIndentY, getIndentYMethods inherited from interface com.helger.pdflayout.base.IPLObject
getAsSplittable, getDebugID, hasID, isVertSplittableMethods inherited from interface com.helger.pdflayout.base.IPLRenderableObject
beforeRender, getPreparedHeight, getPreparedSize, getPreparedWidth, getRenderHeight, getRenderSize, getRenderWidth, isPrepared, prepare, renderMethods inherited from interface com.helger.pdflayout.base.IPLVisitable
visit
-
Constructor Details
-
AbstractPLBlockElement
public AbstractPLBlockElement()
-
-
Method Details
-
setBasicDataFrom
@Nonnull @OverridingMethodsMustInvokeSuper public IMPLTYPE setBasicDataFrom(@Nonnull IMPLTYPE aSource) Description copied from interface:IPLObjectFor copying stuff internally. Must always call super method- Specified by:
setBasicDataFromin interfaceIPLObject<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Overrides:
setBasicDataFromin classAbstractPLElement<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Parameters:
aSource- Source object to copy from. May not benull.- Returns:
- this for chaining
-
getHorzAlign
- Specified by:
getHorzAlignin interfaceIPLHasHorizontalAlignment<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Returns:
- The horizontal alignment of this element. By default it is
EHorzAlignment.DEFAULT. Nevernull. The horizontal alignment may only be applied to contained children!
-
setHorzAlign
Description copied from interface:IPLHasHorizontalAlignmentSet the horizontal alignment of this element. The horizontal alignment may only be applied to contained children!- Specified by:
setHorzAlignin interfaceIPLHasHorizontalAlignment<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Parameters:
eHorzAlign- The new horizontal alignment. May not benull.- Returns:
- this
-
getVertAlign
- Specified by:
getVertAlignin interfaceIPLHasVerticalAlignment<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Returns:
- The vertical alignment of this element. By default it is
EVertAlignment.DEFAULT. Nevernull. The vertical alignment may only be applied to contained children!
-
setVertAlign
Description copied from interface:IPLHasVerticalAlignmentSet the vertical alignment of this element. The vertical alignment may only be applied to contained children!- Specified by:
setVertAlignin interfaceIPLHasVerticalAlignment<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Parameters:
eVertAlign- The new vertical alignment. May not benull.- Returns:
- this
-
isFullWidth
public final boolean isFullWidth()- Specified by:
isFullWidthin interfaceIPLBlockElement<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Returns:
- Should the element occupy the full width? The default is
IPLBlockElement.DEFAULT_FULL_WIDTH.
-
setFullWidth
Description copied from interface:IPLBlockElementSet usage of full width.- Specified by:
setFullWidthin interfaceIPLBlockElement<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>- Parameters:
bFullWidth-trueto enable full width,falseto use only what is available.- Returns:
- this for chaining
-
toString
- Overrides:
toStringin classAbstractPLElement<IMPLTYPE extends AbstractPLBlockElement<IMPLTYPE>>
-