Class AbstractExtensionPlugin<T extends AbstractPluginOptions>

    • Constructor Detail

      • AbstractExtensionPlugin

        protected AbstractExtensionPlugin()
        Reduces the visibility of constructor.
    • Method Detail

      • isRegistered

        protected final boolean isRegistered()
        Returns true if the plugin has been already registered.
        Returns:
        true if the plugin has been already registered
      • getDefaults

        protected final T getDefaults()
        Returns the original defaults of plugin.
        Returns:
        the original defaults of plugin
      • applyingDefaults

        protected final void applyingDefaults​(T options)
        This is invoked before storing the plugins options as default.
        Applies the default to the options passed as argument.
        Parameters:
        options - options instance where to apply the defaults.
      • loadDefaults

        protected final void loadDefaults​(AbstractPluginOptionsFactory<T> factory)
        Loads the default values from CHART.JS default in order to maintain the defaults.
        Parameters:
        factory - factory to load default options