Package com.helger.pdflayout.base
Class PLMarginBorderPadding
- java.lang.Object
-
- com.helger.pdflayout.base.PLMarginBorderPadding
-
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<PLMarginBorderPadding>,IPLHasBorder<PLMarginBorderPadding>,IPLHasMargin<PLMarginBorderPadding>,IPLHasMarginBorderPadding<PLMarginBorderPadding>,IPLHasOutline,IPLHasPadding<PLMarginBorderPadding>
@NotThreadSafe public class PLMarginBorderPadding extends Object implements IPLHasMarginBorderPadding<PLMarginBorderPadding>
Represents a single page layout as element. It consists of a page size, a page header and footer as well as a set of page body elements.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from interface com.helger.pdflayout.base.IPLHasBorder
DEFAULT_BORDER
-
Fields inherited from interface com.helger.pdflayout.base.IPLHasMargin
DEFAULT_MARGIN
-
Fields inherited from interface com.helger.pdflayout.base.IPLHasPadding
DEFAULT_PADDING
-
-
Constructor Summary
Constructors Constructor Description PLMarginBorderPadding(MarginSpec aMargin, PaddingSpec aPadding, BorderSpec aBorder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BorderSpecgetBorder()MarginSpecgetMargin()PaddingSpecgetPadding()PLMarginBorderPaddingsetBorder(BorderSpec aBorder)Set the border values.PLMarginBorderPaddingsetMargin(MarginSpec aMargin)Set the margin values.PLMarginBorderPaddingsetPadding(PaddingSpec aPadding)Set the padding values.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.pdflayout.base.IPLHasBorder
getBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getBorderXSumWidth, getBorderYSumWidth, setBorder, setBorder, setBorder, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setBorderX, setBorderY
-
Methods inherited from interface com.helger.pdflayout.base.IPLHasMargin
addMarginBottom, addMarginLeft, addMarginRight, addMarginTop, addMarginX, addMarginY, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginXSum, getMarginYSum, setMargin, setMargin, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarginX, setMarginY
-
Methods inherited from interface com.helger.pdflayout.base.IPLHasMarginBorderPadding
getOutlineBottom, getOutlineLeft, getOutlineRight, getOutlineTop, getOutlineXSum, getOutlineYSum
-
Methods inherited from interface com.helger.pdflayout.base.IPLHasPadding
addPaddingBottom, addPaddingLeft, addPaddingRight, addPaddingTop, addPaddingX, addPaddingY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPaddingX, setPaddingY
-
-
-
-
Constructor Detail
-
PLMarginBorderPadding
public PLMarginBorderPadding(@Nonnull MarginSpec aMargin, @Nonnull PaddingSpec aPadding, @Nonnull BorderSpec aBorder)
-
-
Method Detail
-
getMargin
@Nonnull public final MarginSpec getMargin()
- Specified by:
getMarginin interfaceIPLHasMargin<PLMarginBorderPadding>- Returns:
- The current margin. Never
null.
-
setMargin
@Nonnull public final PLMarginBorderPadding setMargin(@Nonnull MarginSpec aMargin)
Description copied from interface:IPLHasMarginSet the margin values.- Specified by:
setMarginin interfaceIPLHasMargin<PLMarginBorderPadding>- Parameters:
aMargin- Margin to use. May not benull.- Returns:
- this
-
getPadding
@Nonnull public final PaddingSpec getPadding()
- Specified by:
getPaddingin interfaceIPLHasPadding<PLMarginBorderPadding>- Returns:
- The current padding. Never
null.
-
setPadding
@Nonnull public final PLMarginBorderPadding setPadding(@Nonnull PaddingSpec aPadding)
Description copied from interface:IPLHasPaddingSet the padding values.- Specified by:
setPaddingin interfaceIPLHasPadding<PLMarginBorderPadding>- Parameters:
aPadding- Padding to use. May not benull.- Returns:
- this
-
getBorder
@Nonnull public final BorderSpec getBorder()
- Specified by:
getBorderin interfaceIPLHasBorder<PLMarginBorderPadding>- Returns:
- The current border. Never
null.
-
setBorder
@Nonnull public final PLMarginBorderPadding setBorder(@Nonnull BorderSpec aBorder)
Description copied from interface:IPLHasBorderSet the border values. This method may not be called after an element got prepared!- Specified by:
setBorderin interfaceIPLHasBorder<PLMarginBorderPadding>- Parameters:
aBorder- Border to use. May not benull.- Returns:
- this
-
-