T - type of plugin optionspublic abstract class AbstractExtensionPlugin<T extends AbstractPluginOptions> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExtensionPlugin()
Reduces the visibility of constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyingDefaults(T options)
This is invoked before storing the plugins options as default.
Applies the default to the options passed as argument. |
protected T |
getDefaults()
Returns the original defaults of plugin.
|
protected boolean |
isRegistered()
Returns
true if the plugin has been already registered. |
protected void |
loadDefaults(AbstractPluginOptionsFactory<T> factory)
Loads the default values from CHART.JS default in order to maintain the defaults.
|
protected AbstractExtensionPlugin()
protected final boolean isRegistered()
true if the plugin has been already registered.true if the plugin has been already registeredprotected final T getDefaults()
protected final void applyingDefaults(T options)
options - options instance where to apply the defaults.protected final void loadDefaults(AbstractPluginOptionsFactory<T> factory)
factory - factory to load default options