Class Padding

  • All Implemented Interfaces:
    IsDefaultPadding, IsPadding

    public final class Padding
    extends AbstractNode
    implements IsPadding
    Maps the additional space to apply to the sides of elements (left, top, right, bottom), in pixels.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • setLeft

        public void setLeft​(int padding)
        Sets the padding left in pixel.
        Specified by:
        setLeft in interface IsPadding
        Parameters:
        padding - the padding left in pixel.
      • getLeft

        public int getLeft()
        Returns the padding left in pixel.
        Specified by:
        getLeft in interface IsDefaultPadding
        Returns:
        the padding left in pixel.
      • setRight

        public void setRight​(int padding)
        Sets the padding right in pixel.
        Specified by:
        setRight in interface IsPadding
        Parameters:
        padding - the padding right in pixel.
      • getRight

        public int getRight()
        Returns the padding right in pixel.
        Specified by:
        getRight in interface IsDefaultPadding
        Returns:
        the padding right in pixel.
      • setTop

        public void setTop​(int padding)
        Sets the padding top in pixel.
        Specified by:
        setTop in interface IsPadding
        Parameters:
        padding - the padding top in pixel.
      • getTop

        public int getTop()
        Returns the padding top in pixel.
        Specified by:
        getTop in interface IsDefaultPadding
        Returns:
        the padding top in pixel.
      • setBottom

        public void setBottom​(int padding)
        Sets the padding bottom in pixel.
        Specified by:
        setBottom in interface IsPadding
        Parameters:
        padding - the padding bottom in pixel.
      • getBottom

        public int getBottom()
        Returns the padding bottom in pixel.
        Specified by:
        getBottom in interface IsDefaultPadding
        Returns:
        the padding bottom in pixel.