Class AbstractPadding

    • Constructor Detail

      • AbstractPadding

        protected AbstractPadding​(IsDefaultPadding defaultValues)
        Creates an empty padding to use for chart configuration.
        Parameters:
        defaultValues - default provider
      • AbstractPadding

        protected AbstractPadding​(IsDefaultPadding defaultValues,
                                  NativeObject nativeObject)
        Creates a padding to use for chart configuration, wrapping a native object instance.
        Parameters:
        defaultValues - default provider
        nativeObject - native object to map java script properties
    • Method Detail

      • setLeft

        public void setLeft​(int value)
        Sets the padding left in pixel.
        Specified by:
        setLeft in interface IsPadding
        Parameters:
        value - 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 value)
        Sets the padding right in pixel.
        Specified by:
        setRight in interface IsPadding
        Parameters:
        value - 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 value)
        Sets the padding top in pixel.
        Specified by:
        setTop in interface IsPadding
        Parameters:
        value - 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 value)
        Sets the padding bottom in pixel.
        Specified by:
        setBottom in interface IsPadding
        Parameters:
        value - 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.
      • getObject

        protected final NativeObject getObject()
        Returns the native object instance.
        Returns:
        the native object instance.