public abstract class AbstractPluginOptionsFactory<T extends AbstractPluginOptions> extends AbstractChartsLifecycleListener implements NativeObjectContainerFactory<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPluginOptionsFactory(String pluginId)
Adds itself as charts life cycle listener to manage the cache of plugin options, in order to clean the instances when the
charts will be destroy.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractPluginOptions |
getOptions(NativeObject nativeObject)
Returns the cached plugin options instance if there is, otherwise returns
null. |
void |
onAfterInit(AbstractChart<?,?> chart)
Called after 'chart' has been initialized and before the first update.
|
void |
onBeforeDestroy(AbstractChart<?,?> chart)
Called before the chart as been destroyed.
|
onAfterDestroy, onBeforeInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateprotected AbstractPluginOptionsFactory(String pluginId)
pluginId - plugin idpublic final void onAfterInit(AbstractChart<?,?> chart)
ChartsLifecycleListeneronAfterInit in interface ChartsLifecycleListeneronAfterInit in class AbstractChartsLifecycleListenerchart - the chart instance.public final void onBeforeDestroy(AbstractChart<?,?> chart)
ChartsLifecycleListeneronBeforeDestroy in interface ChartsLifecycleListeneronBeforeDestroy in class AbstractChartsLifecycleListenerchart - the chart instance.protected final AbstractPluginOptions getOptions(NativeObject nativeObject)
null.nativeObject - native object instance to be readnull.