Package com.helger.pdflayout.spec
Class MarginSpec
java.lang.Object
com.helger.pdflayout.spec.AbstractRectSpec
com.helger.pdflayout.spec.MarginSpec
- All Implemented Interfaces:
Serializable
Defines a rectangular margin.
- Author:
- Philip Helger
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final MarginSpecA constant representing no margin.Fields inherited from class com.helger.pdflayout.spec.AbstractRectSpec
m_fBottom, m_fLeft, m_fRight, m_fTop -
Constructor Summary
ConstructorsConstructorDescriptionMarginSpec(float f) Constructor with the same value for all axis.MarginSpec(float fY, float fX) Constructor with the same value for X and Y axis.MarginSpec(float fTop, float fRight, float fBottom, float fLeft) Constructor with explicit valuesMarginSpec(AbstractRectSpec aOther) Pseudo copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic MarginSpecbottom(float fBottom) static MarginSpeccreateMM(float f) static MarginSpeccreateMM(float fY, float fX) static MarginSpeccreateMM(float fTop, float fRight, float fBottom, float fLeft) getCloneWithBottom(float fBottom) getCloneWithLeft(float fLeft) getCloneWithRight(float fRight) getCloneWithTop(float fTop) static MarginSpecleft(float fLeft) static MarginSpecright(float fRight) static MarginSpectop(float fTop)
-
Field Details
-
DEFAULT_FLOAT
public static final float DEFAULT_FLOAT- See Also:
-
MARGIN0
A constant representing no margin.
-
-
Constructor Details
-
MarginSpec
Pseudo copy constructor.- Parameters:
aOther- Value to copy from. May not benull.
-
MarginSpec
public MarginSpec(float f) Constructor with the same value for all axis.- Parameters:
f- value for top, right, bottom, left
-
MarginSpec
public MarginSpec(float fY, float fX) Constructor with the same value for X and Y axis.- Parameters:
fY- top and bottom valuefX- left and right value
-
MarginSpec
public MarginSpec(float fTop, float fRight, float fBottom, float fLeft) Constructor with explicit values- Parameters:
fTop- top valuefRight- right valuefBottom- bottom valuefLeft- left value
-
-
Method Details
-
getCloneWithTop
-
getCloneWithRight
-
getCloneWithBottom
-
getCloneWithLeft
-
createMM
-
createMM
-
createMM
-
top
-
right
-
bottom
-
left
-