Class MarginSpec

    • Field Detail

      • MARGIN0

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

      • 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