Class MarginSpec

java.lang.Object
com.helger.pdflayout.spec.AbstractRectSpec
com.helger.pdflayout.spec.MarginSpec
All Implemented Interfaces:
Serializable

@Immutable @MustImplementEqualsAndHashcode public class MarginSpec extends AbstractRectSpec
Defines a rectangular margin.
Author:
Philip Helger
See Also:
  • Field Details

    • DEFAULT_FLOAT

      public static final float DEFAULT_FLOAT
      See Also:
    • MARGIN0

      public static final MarginSpec MARGIN0
      A constant representing no margin.
  • Constructor Details

    • MarginSpec

      public MarginSpec(@Nonnull AbstractRectSpec aOther)
      Pseudo copy constructor.
      Parameters:
      aOther - Value to copy from. May not be null.
    • 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 value
      fX - left and right value
    • MarginSpec

      public MarginSpec(float fTop, float fRight, float fBottom, float fLeft)
      Constructor with explicit values
      Parameters:
      fTop - top value
      fRight - right value
      fBottom - bottom value
      fLeft - left value
  • Method Details