Class AbstractScriptablePadding<T extends ChartContext>

    • Constructor Detail

      • AbstractScriptablePadding

        protected AbstractScriptablePadding​(IsScriptablePaddingProvider<T> scriptablePaddingProvider,
                                            IsDefaultPadding defaultValues)
        Creates an empty padding to use for chart configuration.
        Parameters:
        scriptablePaddingProvider - the provider of padding callback
        defaultValues - default provider
      • AbstractScriptablePadding

        protected AbstractScriptablePadding​(IsScriptablePaddingProvider<T> scriptablePaddingProvider,
                                            IsDefaultPadding defaultValues,
                                            NativeObject nativeObject)
        Creates a padding to use for chart configuration, wrapping a native object instance.
        Parameters:
        scriptablePaddingProvider - the provider of padding callback
        defaultValues - default provider
        nativeObject - native object to map java script properties
    • Method Detail

      • setLeft

        public void setLeft​(int value)
        Description copied from class: AbstractPadding
        Sets the padding left in pixel.
        Specified by:
        setLeft in interface IsPadding
        Overrides:
        setLeft in class AbstractPadding
        Parameters:
        value - the padding left in pixel.
      • setTop

        public void setTop​(int value)
        Description copied from class: AbstractPadding
        Sets the padding top in pixel.
        Specified by:
        setTop in interface IsPadding
        Overrides:
        setTop in class AbstractPadding
        Parameters:
        value - the padding top in pixel.
      • resetCallback

        protected void resetCallback()
        Invokes when any property of the padding is being set, in order to reset the PaddingCallback if exists