Package com.helger.pdflayout.base
Interface IPLElement<IMPLTYPE extends IPLElement<IMPLTYPE>>
- Type Parameters:
IMPLTYPE- Implementation type
- All Superinterfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,com.helger.commons.id.IHasID<String>,IPLHasBorder<IMPLTYPE>,IPLHasFillColor<IMPLTYPE>,IPLHasMargin<IMPLTYPE>,IPLHasMarginBorderPadding<IMPLTYPE>,IPLHasOutline,IPLHasPadding<IMPLTYPE>,IPLObject<IMPLTYPE>,IPLRenderableObject<IMPLTYPE>,IPLVisitable
- All Known Subinterfaces:
IPLBlockElement<IMPLTYPE>,IPLInlineElement<IMPLTYPE>
- All Known Implementing Classes:
AbstractPLBlockElement,AbstractPLBox,AbstractPLElement,AbstractPLExternalLink,AbstractPLImage,AbstractPLInlineBox,AbstractPLInlineElement,AbstractPLText,PLBox,PLExternalLink,PLImage,PLStreamImage,PLTableCell,PLText
public interface IPLElement<IMPLTYPE extends IPLElement<IMPLTYPE>>
extends IPLRenderableObject<IMPLTYPE>, IPLHasMarginBorderPadding<IMPLTYPE>, IPLHasFillColor<IMPLTYPE>
Base interface for renderable objects having a margin, a border and a
padding
Each object is self-responsible for handling its margin, border and padding!
Each object is self-responsible for handling its margin, border and padding!
- Author:
- Philip Helger
-
Field Summary
FieldsFields 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.IPLHasMargin
DEFAULT_MARGINFields inherited from interface com.helger.pdflayout.base.IPLHasPadding
DEFAULT_PADDING -
Method Summary
Modifier and TypeMethodDescriptiondefault floatdefault floatdefault floatdefault floatdefault IMPLTYPEsetExactHeight(float fHeight) Set the exact height to be used.default IMPLTYPEsetExactSize(float fWidth, float fHeight) Set the exact size to be used.default IMPLTYPEsetExactWidth(float fWidth) Set the exact width to be used.default IMPLTYPEsetMaxHeight(float fMaxHeight) Set the maximum height to be used.default IMPLTYPEsetMaxSize(float fMaxWidth, float fMaxHeight) Set the maximum size to be used.setMaxSize(SizeSpec aMaxSize) Set the maximum size to be used.default IMPLTYPEsetMaxWidth(float fMaxWidth) Set the maximum width to be used.default IMPLTYPEsetMinHeight(float fMinHeight) Set the minimum height to be used.default IMPLTYPEsetMinSize(float fMinWidth, float fMinHeight) Set the minimum size to be used.setMinSize(SizeSpec aMinSize) Set the minimum size to be used.default IMPLTYPEsetMinWidth(float fMinWidth) Set the minimum width to be used.Methods 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.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.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.IPLObject
getAsSplittable, getDebugID, hasID, isVertSplittable, setBasicDataFromMethods 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
-
Field Details
-
DEFAULT_MIN_SIZE
-
DEFAULT_MAX_SIZE
-
-
Method Details
-
getMinSize
- Returns:
- The minimum size to be used. Excluding outline. Never
null.
-
getMinWidth
default float getMinWidth()- Returns:
- The minimum width of the element.
-
getMinHeight
default float getMinHeight()- Returns:
- The minimum height of the element.
-
setMinSize
Set the minimum size to be used. Excluding outline.- Parameters:
fMinWidth- Minimum width. Must be ≥ 0.fMinHeight- Minimum height. Must be ≥ 0.- Returns:
- this
-
setMinSize
Set the minimum size to be used. Excluding outline.- Parameters:
aMinSize- Minimum size. May not benull.- Returns:
- this
-
setMinWidth
Set the minimum width to be used. Excluding outline.- Parameters:
fMinWidth- Minimum width. Must be ≥ 0.- Returns:
- this
-
setMinHeight
Set the minimum height to be used. Excluding outline.- Parameters:
fMinHeight- Minimum height. Must be ≥ 0.- Returns:
- this
-
getMaxSize
- Returns:
- The maximum size to be used. Excluding outline. Never
null.
-
getMaxWidth
default float getMaxWidth()- Returns:
- The max width of the element.
-
getMaxHeight
default float getMaxHeight()- Returns:
- The maximum height of the element.
-
setMaxSize
Set the maximum size to be used. Excluding outline.- Parameters:
fMaxWidth- Maximum width. Must be ≥ 0.fMaxHeight- Maximum height. Must be ≥ 0.- Returns:
- this
-
setMaxSize
Set the maximum size to be used. Excluding outline.- Parameters:
aMaxSize- Maximum size. May not benull. Must both be ≥ 0.- Returns:
- this
-
setMaxWidth
Set the maximum width to be used. Excluding outline.- Parameters:
fMaxWidth- Maximum width. Must be ≥ 0.- Returns:
- this
-
setMaxHeight
Set the maximum height to be used. Excluding outline.- Parameters:
fMaxHeight- Maximum height. Must be ≥ 0.- Returns:
- this
-
setExactSize
Set the exact size to be used. Excluding outline. This is a shortcut for setting minimum and maximum size to the same values.- Parameters:
fWidth- Width to use. Must be ≥ 0.fHeight- Height to use. Must be ≥ 0.- Returns:
- this
- See Also:
-
setExactWidth
Set the exact width to be used. Excluding outline. This is a shortcut for setting minimum and maximum width to the same values.- Parameters:
fWidth- Width to use. Must be ≥ 0.- Returns:
- this
- See Also:
-
setExactHeight
Set the exact height to be used. Excluding outline. This is a shortcut for setting minimum and maximum height to the same values.- Parameters:
fHeight- Height to use. Must be ≥ 0.- Returns:
- this
- See Also:
-