Class AbstractRectSpec

java.lang.Object
com.helger.pdflayout.spec.AbstractRectSpec
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MarginSpec, PaddingSpec

@Immutable @MustImplementEqualsAndHashcode public abstract class AbstractRectSpec extends Object implements Serializable
Defines a rectangular object.
Author:
Philip Helger
See Also:
  • Field Details

    • m_fTop

      protected final float m_fTop
    • m_fRight

      protected final float m_fRight
    • m_fBottom

      protected final float m_fBottom
    • m_fLeft

      protected final float m_fLeft
  • Constructor Details

    • AbstractRectSpec

      public AbstractRectSpec(@Nonnull AbstractRectSpec aOther)
    • AbstractRectSpec

      public AbstractRectSpec(float fTop, float fRight, float fBottom, float fLeft)
  • Method Details

    • hasAnyValue

      public final boolean hasAnyValue()
    • getTop

      public final float getTop()
      Returns:
      Top value
    • getRight

      public final float getRight()
      Returns:
      Right value
    • getBottom

      public final float getBottom()
      Returns:
      Bottom value
    • getLeft

      public final float getLeft()
      Returns:
      Left value
    • getXSum

      public final float getXSum()
      Returns:
      Left + right value
    • getYSum

      public final float getYSum()
      Returns:
      Top + bottom value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object