Class DefaultPadding

  • All Implemented Interfaces:
    IsDefaultPadding

    public final class DefaultPadding
    extends Object
    implements IsDefaultPadding
    CHART.JS default values for PADDING element.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • DefaultPadding

        public DefaultPadding​(int padding)
        Creates the object with default padding.
        Parameters:
        padding - the default padding
    • Method Detail

      • getLeft

        public int getLeft()
        Description copied from interface: IsDefaultPadding
        Returns the padding left in pixel.
        Specified by:
        getLeft in interface IsDefaultPadding
        Returns:
        the padding left in pixel.
      • getRight

        public int getRight()
        Description copied from interface: IsDefaultPadding
        Returns the padding right in pixel.
        Specified by:
        getRight in interface IsDefaultPadding
        Returns:
        the padding right in pixel.
      • getTop

        public int getTop()
        Description copied from interface: IsDefaultPadding
        Returns the padding top in pixel.
        Specified by:
        getTop in interface IsDefaultPadding
        Returns:
        the padding top in pixel.
      • getBottom

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