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_BORDERFields inherited from interface com.helger.pdflayout.base.IPLHasMargin
DEFAULT_MARGINFields inherited from interface com.helger.pdflayout.base.IPLHasPadding
DEFAULT_PADDING -
Constructor Summary
ConstructorsConstructorDescriptionPLMarginBorderPadding(MarginSpec aMargin, PaddingSpec aPadding, BorderSpec aBorder) -
Method Summary
Modifier and TypeMethodDescriptionfinal BorderSpecfinal MarginSpecfinal PaddingSpecfinal PLMarginBorderPaddingsetBorder(BorderSpec aBorder) Set the border values.final PLMarginBorderPaddingsetMargin(MarginSpec aMargin) Set the margin values.final PLMarginBorderPaddingsetPadding(PaddingSpec aPadding) Set the padding values.toString()Methods 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.pdflayout.base.IPLHasBorder
getBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getBorderXSumWidth, getBorderYSumWidth, setBorder, setBorder, setBorder, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setBorderX, setBorderYMethods 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, 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, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPaddingX, setPaddingY
-
Constructor Details
-
PLMarginBorderPadding
public PLMarginBorderPadding(@Nonnull MarginSpec aMargin, @Nonnull PaddingSpec aPadding, @Nonnull BorderSpec aBorder)
-
-
Method Details
-
getMargin
- Specified by:
getMarginin interfaceIPLHasMargin<PLMarginBorderPadding>- Returns:
- The current margin. Never
null.
-
setMargin
Description copied from interface:IPLHasMarginSet the margin values.- Specified by:
setMarginin interfaceIPLHasMargin<PLMarginBorderPadding>- Parameters:
aMargin- Margin to use. May not benull.- Returns:
- this
-
getPadding
- Specified by:
getPaddingin interfaceIPLHasPadding<PLMarginBorderPadding>- Returns:
- The current padding. Never
null.
-
setPadding
Description copied from interface:IPLHasPaddingSet the padding values.- Specified by:
setPaddingin interfaceIPLHasPadding<PLMarginBorderPadding>- Parameters:
aPadding- Padding to use. May not benull.- Returns:
- this
-
getBorder
- Specified by:
getBorderin interfaceIPLHasBorder<PLMarginBorderPadding>- Returns:
- The current border. Never
null.
-
setBorder
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
-
toString
-