Class SmartPlugin
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.plugins.AbstractBasePlugin
-
- org.pepstock.charba.client.plugins.SmartPlugin
-
public class SmartPlugin extends AbstractBasePlugin
Wraps a plugin, delegating the execution of all hooks to it.
the needed hooks can be added and CHART.JS will invoke only those hooks, improving the drawing performance.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description SmartPlugin(String id)Builds the object with plugin id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AfterBuildTicksHookgetAfterBuildTicksHook()Returns the user hook for 'afterBuildTicks' plugin.
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.AfterDataLimitsHookgetAfterDataLimitsHook()Returns the user hook for 'afterDataLimits' plugin.
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.AfterDatasetDrawHookgetAfterDatasetDrawHook()Returns the user hook for 'afterDatasetDraw' plugin.
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.AfterDatasetsDrawHookgetAfterDatasetsDrawHook()Returns the user hook for 'afterDatasetsDraw' plugin.
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.AfterDatasetsUpdateHookgetAfterDatasetsUpdateHook()Returns the user hook for 'afterDatasetsUpdate' plugin.
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.AfterDatasetUpdateHookgetAfterDatasetUpdateHook()Returns the user hook for 'afterDatasetUpdate' plugin.
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.AfterDestroyHookgetAfterDestroyHook()Returns the user hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.AfterDrawHookgetAfterDrawHook()Returns the user hook for 'afterDraw' plugin.
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.AfterEventHookgetAfterEventHook()Returns the user hook for 'afterEvent' plugin.
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.AfterInitHookgetAfterInitHook()Returns the user hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.AfterLayoutHookgetAfterLayoutHook()Returns the user hook for 'afterLayout' plugin.
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.AfterRenderHookgetAfterRenderHook()Returns the user hook for 'afterRender' plugin.
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.AfterTooltipDrawHookgetAfterTooltipDrawHook()Returns the user hook for 'afterTooltipDraw' plugin.
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.AfterUpdateHookgetAfterUpdateHook()Returns the user hook for 'afterUpdate' plugin.
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.BeforeBuildTicksHookgetBeforeBuildTicksHook()Returns the user hook for 'beforeBuildTicks' plugin.
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.BeforeDataLimitsHookgetBeforeDataLimitsHook()Returns the user hook for 'beforeDataLimits' plugin.
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.BeforeDatasetDrawHookgetBeforeDatasetDrawHook()Returns the user hook for 'beforeDatasetDraw' plugin.
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.BeforeDatasetsDrawHookgetBeforeDatasetsDrawHook()Returns the user hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.BeforeDatasetsUpdateHookgetBeforeDatasetsUpdateHook()Returns the user hook for 'beforeDatasetsUpdate' plugin.
Called before updating the 'chart' datasets.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.BeforeDatasetUpdateHookgetBeforeDatasetUpdateHook()Returns the user hook for 'beforeDatasetUpdate' plugin.
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.BeforeDestroyHookgetBeforeDestroyHook()Returns the user hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.BeforeDrawHookgetBeforeDrawHook()Returns the user hook for 'beforeDraw' plugin.
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse, the frame drawing is cancelled until another 'render' is triggered.BeforeElementsUpdateHookgetBeforeElementsUpdateHook()Returns the user hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.BeforeEventHookgetBeforeEventHook()Returns the user hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse, the event will be discarded.BeforeInitHookgetBeforeInitHook()Returns the user hook for 'beforeInit' plugin.
Called before initializing 'chart'.BeforeLayoutHookgetBeforeLayoutHook()Returns the user hook for 'beforeLayout' plugin.
Called before laying out 'chart'.
If any plugin returnsfalse, the layout update is cancelled until another 'update' is triggered.BeforeRenderHookgetBeforeRenderHook()Returns the user hook for 'beforeRender' plugin.
Called before rendering 'chart'.BeforeTooltipDrawHookgetBeforeTooltipDrawHook()Returns the user hook for 'beforeTooltipDraw' plugin.
Called before drawing the 'tooltip'.
If any plugin returnsfalse, the tooltip drawing is cancelled until another 'render' is triggered.BeforeUpdateHookgetBeforeUpdateHook()Returns the user hook for 'beforeUpdate' plugin.
Called before updating 'chart'.
If any plugin returnsfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.ConfigureHookgetConfigureHook()Called before initializing configuration of 'chart'.InstallHookgetInstallHook()Returns the user hook for 'install' plugin.
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).ResetHookgetResetHook()Returns the user hook for 'reset' plugin.
Called during chart reset.ResizeHookgetResizeHook()Returns the user hook for 'resize' plugin.
Called after the chart as been resized.StartHookgetStartHook()Returns the user hook for 'start' plugin.
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.StopHookgetStopHook()Returns the user hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.UninstallHookgetUninstallHook()Returns the user hook for 'uninstall' plugin.
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false).voidsetAfterBuildTicksHook(AfterBuildTicksHook afterBuildTicksHook)Sets the user hook for 'afterBuildTicks' plugin.
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.voidsetAfterBuildTicksHook(NativeHook nativeAfterBuildTicksHook)Sets the user native hook for 'afterBuildTicks' plugin.
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.voidsetAfterDataLimitsHook(AfterDataLimitsHook afterDataLimitsHook)Sets the user hook for 'afterDataLimits' plugin.
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.voidsetAfterDataLimitsHook(NativeHook nativeAfterDataLimitsHook)Sets the user native hook for 'afterDataLimits' plugin.
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.voidsetAfterDatasetDrawHook(AfterDatasetDrawHook afterDatasetDrawHook)Sets the user hook for 'afterDatasetDraw' plugin.
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.voidsetAfterDatasetDrawHook(NativeHook nativeAfterDatasetDrawHook)Sets the user native hook for 'afterDatasetDraw' plugin.
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.voidsetAfterDatasetsDrawHook(AfterDatasetsDrawHook afterDatasetsDrawHook)Sets the user hook for 'afterDatasetsDraw' plugin.
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.voidsetAfterDatasetsDrawHook(NativeHook nativeAfterDatasetsDrawHook)Sets the user native hook for 'afterDatasetsDraw' plugin.
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.voidsetAfterDatasetsUpdateHook(AfterDatasetsUpdateHook afterDatasetsUpdateHook)Sets the user hook for 'afterDatasetsUpdate' plugin.
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.voidsetAfterDatasetsUpdateHook(NativeHook nativeAfterDatasetsUpdateHook)Sets the user native hook for 'afterDatasetsUpdate' plugin.
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.voidsetAfterDatasetUpdateHook(AfterDatasetUpdateHook afterDatasetUpdateHook)Sets the user hook for 'afterDatasetUpdate' plugin.
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.voidsetAfterDatasetUpdateHook(NativeHook nativeAfterDatasetUpdateHook)Sets the user native hook for 'afterDatasetUpdate' plugin.
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.voidsetAfterDestroyHook(AfterDestroyHook afterDestroyHook)Sets the user hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.voidsetAfterDestroyHook(NativeHook nativeAfterDestroyHook)Sets the user native hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.voidsetAfterDrawHook(AfterDrawHook afterDrawHook)Sets the user hook for 'afterDraw' plugin.
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.voidsetAfterDrawHook(NativeHook nativeAfterDrawHook)Sets the user native hook for 'afterDraw' plugin.
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.voidsetAfterEventHook(AfterEventHook afterEventHook)Sets the user hook for 'afterEvent' plugin.
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.voidsetAfterEventHook(NativeHook nativeAfterEventHook)Sets the user native hook for 'afterEvent' plugin.
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.voidsetAfterInitHook(AfterInitHook afterInitHook)Sets the user hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.voidsetAfterInitHook(NativeHook nativeAfterInitHook)Sets the user native hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.voidsetAfterLayoutHook(AfterLayoutHook afterLayoutHook)Sets the user hook for 'afterLayout' plugin.
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.voidsetAfterLayoutHook(NativeHook nativeAfterLayoutHook)Sets the user native hook for 'afterLayout' plugin.
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.voidsetAfterRenderHook(AfterRenderHook afterRenderHook)Sets the user hook for 'afterRender' plugin.
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.voidsetAfterRenderHook(NativeHook nativeAfterRenderHook)Sets the user native hook for 'afterRender' plugin.
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.voidsetAfterTooltipDrawHook(AfterTooltipDrawHook afterTooltipDrawHook)Sets the user hook for 'afterTooltipDraw' plugin.
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.voidsetAfterTooltipDrawHook(NativeHook nativeAfterTooltipDrawHook)Sets the user native hook for 'afterTooltipDraw' plugin.
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.voidsetAfterUpdateHook(AfterUpdateHook afterUpdateHook)Sets the user hook for 'afterUpdate' plugin.
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.voidsetAfterUpdateHook(NativeHook nativeAfterUpdateHook)Sets the user native hook for 'afterUpdate' plugin.
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.voidsetBeforeBuildTicksHook(BeforeBuildTicksHook beforeBuildTicksHook)Sets the user hook for 'beforeBuildTicks' plugin.
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.voidsetBeforeBuildTicksHook(NativeHook nativeBeforeBuildTicksHook)Sets the user native hook for 'beforeBuildTicks' plugin.
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.voidsetBeforeDataLimitsHook(BeforeDataLimitsHook beforeDataLimitsHook)Sets the user hook for 'beforeDataLimits' plugin.
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.voidsetBeforeDataLimitsHook(NativeHook nativeBeforeDataLimitsHook)Sets the user native hook for 'beforeDataLimits' plugin.
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.voidsetBeforeDatasetDrawHook(BeforeDatasetDrawHook beforeDatasetDrawHook)Sets the user hook for 'beforeDatasetDraw' plugin.
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.voidsetBeforeDatasetDrawHook(NativeHook nativeBeforeDatasetDrawHook)Sets the user native hook for 'beforeDatasetDraw' plugin.
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.voidsetBeforeDatasetsDrawHook(BeforeDatasetsDrawHook beforeDatasetsDrawHook)Sets the user hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.voidsetBeforeDatasetsDrawHook(NativeHook nativeBeforeDatasetsDrawHook)Sets the user native hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.voidsetBeforeDatasetsUpdateHook(BeforeDatasetsUpdateHook beforeDatasetsUpdateHook)Sets the user hook for 'beforeDatasetsUpdate' plugin.
Called before updating the 'chart' datasets.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.voidsetBeforeDatasetsUpdateHook(NativeHook nativeBeforeDatasetsUpdateHook)Sets the user native hook for 'beforeDatasetsUpdate' plugin.
Called before updating the 'chart' datasets.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.voidsetBeforeDatasetUpdateHook(BeforeDatasetUpdateHook beforeDatasetUpdateHook)Sets the user hook for 'beforeDatasetUpdate' plugin.
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.voidsetBeforeDatasetUpdateHook(NativeHook nativeBeforeDatasetUpdateHook)Sets the user native hook for 'beforeDatasetUpdate' plugin.
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.voidsetBeforeDestroyHook(BeforeDestroyHook beforeDestroyHook)Sets the user hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.voidsetBeforeDestroyHook(NativeHook nativeBeforeDestroyHook)Sets the user native hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.voidsetBeforeDrawHook(BeforeDrawHook beforeDrawHook)Sets the user hook for 'beforeDraw' plugin.
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse, the frame drawing is cancelled until another 'render' is triggered.voidsetBeforeDrawHook(NativeHook nativeBeforeDrawHook)Sets the user native hook for 'beforeDraw' plugin.
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse, the frame drawing is cancelled until another 'render' is triggered.voidsetBeforeElementsUpdateHook(BeforeElementsUpdateHook beforeElementsUpdateHook)Sets the user hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.voidsetBeforeElementsUpdateHook(NativeHook nativeBeforeElementsUpdateHook)Sets the user native hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.voidsetBeforeEventHook(BeforeEventHook beforeEventHook)Sets the user hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse, the event will be discarded.voidsetBeforeEventHook(NativeHook nativeBeforeEventHook)Sets the user native hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse, the event will be discarded.voidsetBeforeInitHook(BeforeInitHook beforeInitHook)Sets the user hook for 'beforeInit' plugin.
Called before initializing 'chart'.voidsetBeforeInitHook(NativeHook nativeBeforeInitHook)Sets the user native hook for 'beforeInit' plugin.
Called before initializing 'chart'.voidsetBeforeLayoutHook(BeforeLayoutHook beforeLayoutHook)Sets the user hook for 'beforeLayout' plugin.
Called before laying out 'chart'.
If any plugin returnsfalse, the layout update is cancelled until another 'update' is triggered.voidsetBeforeLayoutHook(NativeHook nativeBeforeLayoutHook)Sets the user native hook for 'beforeLayout' plugin.
Called before laying out 'chart'.
If any plugin returnsfalse, the layout update is cancelled until another 'update' is triggered.voidsetBeforeRenderHook(BeforeRenderHook beforeRenderHook)Sets the user hook for 'beforeRender' plugin.
Called before rendering 'chart'.voidsetBeforeRenderHook(NativeHook nativeBeforeRenderHook)Sets the user native hook for 'beforeRender' plugin.
Called before rendering 'chart'.voidsetBeforeTooltipDrawHook(BeforeTooltipDrawHook beforeTooltipDrawHook)Sets the user hook for 'beforeTooltipDraw' plugin.
Called before drawing the 'tooltip'.
If any plugin returnsfalse, the tooltip drawing is cancelled until another 'render' is triggered.voidsetBeforeTooltipDrawHook(NativeHook nativeBeforeTooltipDrawHook)Sets the user native hook for 'beforeTooltipDraw' plugin.
Called before drawing the 'tooltip'.
If any plugin returnsfalse, the tooltip drawing is cancelled until another 'render' is triggered.voidsetBeforeUpdateHook(BeforeUpdateHook beforeUpdateHook)Sets the user hook for 'beforeUpdate' plugin.
Called before updating 'chart'.
If any plugin returnsfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.voidsetBeforeUpdateHook(NativeHook nativeBeforeUpdateHook)Sets the user native hook for 'beforeUpdate' plugin.
Called before updating 'chart'.
If any plugin returnsfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.voidsetConfigureHook(ConfigureHook configureHook)Called before initializing configuration of 'chart'.voidsetInstallHook(InstallHook installHook)Sets the user hook for 'install' plugin.
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).voidsetInstallHook(NativeHook nativeInstallHook)Sets the user native hook for 'install' plugin.
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).voidsetResetHook(ResetHook resetHook)Sets the user hook for 'reset' plugin.
Called during chart reset.voidsetResetHook(NativeHook nativeResetHook)Sets the user native hook for 'reset' plugin.
Called during chart reset.voidsetResizeHook(ResizeHook resizeHook)Sets the user hook for 'resize' plugin.
Called after the chart as been resized.voidsetResizeHook(NativeHook nativeResizeHook)Sets the user native hook for 'resize' plugin.
Called after the chart as been resized.voidsetStartHook(StartHook startHook)Sets the user hook for 'start' plugin.
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.voidsetStartHook(NativeHook nativeStartHook)Sets the user native hook for 'start' plugin.
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.voidsetStopHook(StopHook stopHook)Sets the user hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.voidsetStopHook(NativeHook nativeStopHook)Sets the user native hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.voidsetUninstallHook(UninstallHook uninstallHook)Sets the user hook for 'uninstall' plugin.
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false).voidsetUninstallHook(NativeHook nativeUninstallHook)Sets the user native hook for 'uninstall' plugin.
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false).-
Methods inherited from class org.pepstock.charba.client.plugins.AbstractBasePlugin
getId
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Constructor Detail
-
SmartPlugin
public SmartPlugin(String id)
Builds the object with plugin id- Parameters:
id- plugin instance
-
-
Method Detail
-
setConfigureHook
public final void setConfigureHook(ConfigureHook configureHook)
Called before initializing configuration of 'chart'.- Parameters:
configureHook- the user hook for 'configure' plugin
-
getConfigureHook
public final ConfigureHook getConfigureHook()
Called before initializing configuration of 'chart'.- Returns:
- the user hook for 'configure' plugin
-
setBeforeInitHook
public final void setBeforeInitHook(BeforeInitHook beforeInitHook)
Sets the user hook for 'beforeInit' plugin.
Called before initializing 'chart'.- Parameters:
beforeInitHook- the user hook for 'beforeInit' plugin
-
setBeforeInitHook
public final void setBeforeInitHook(NativeHook nativeBeforeInitHook)
Sets the user native hook for 'beforeInit' plugin.
Called before initializing 'chart'.- Parameters:
nativeBeforeInitHook- the user hook for 'beforeInit' plugin
-
getBeforeInitHook
public final BeforeInitHook getBeforeInitHook()
Returns the user hook for 'beforeInit' plugin.
Called before initializing 'chart'.- Returns:
- the user hook for 'beforeInit' plugin
-
setAfterInitHook
public final void setAfterInitHook(AfterInitHook afterInitHook)
Sets the user hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.- Parameters:
afterInitHook- the user hook for 'afterInit' plugin
-
setAfterInitHook
public final void setAfterInitHook(NativeHook nativeAfterInitHook)
Sets the user native hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.- Parameters:
nativeAfterInitHook- the user hook for 'afterInit' plugin
-
getAfterInitHook
public final AfterInitHook getAfterInitHook()
Returns the user hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.- Returns:
- the user hook for 'afterInit' plugin
-
setBeforeUpdateHook
public final void setBeforeUpdateHook(BeforeUpdateHook beforeUpdateHook)
Sets the user hook for 'beforeUpdate' plugin.
Called before updating 'chart'.
If any plugin returnsfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.- Parameters:
beforeUpdateHook- the user hook for 'beforeUpdate' plugin
-
setBeforeUpdateHook
public final void setBeforeUpdateHook(NativeHook nativeBeforeUpdateHook)
Sets the user native hook for 'beforeUpdate' plugin.
Called before updating 'chart'.
If any plugin returnsfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.- Parameters:
nativeBeforeUpdateHook- the user hook for 'beforeUpdate' plugin
-
getBeforeUpdateHook
public final BeforeUpdateHook getBeforeUpdateHook()
Returns the user hook for 'beforeUpdate' plugin.
Called before updating 'chart'.
If any plugin returnsfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.- Returns:
- the user hook for 'beforeUpdate' plugin
-
setAfterUpdateHook
public final void setAfterUpdateHook(AfterUpdateHook afterUpdateHook)
Sets the user hook for 'afterUpdate' plugin.
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.- Parameters:
afterUpdateHook- the user hook for 'afterUpdate' plugin
-
setAfterUpdateHook
public final void setAfterUpdateHook(NativeHook nativeAfterUpdateHook)
Sets the user native hook for 'afterUpdate' plugin.
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.- Parameters:
nativeAfterUpdateHook- the user hook for 'afterUpdate' plugin
-
getAfterUpdateHook
public final AfterUpdateHook getAfterUpdateHook()
Returns the user hook for 'afterUpdate' plugin.
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.- Returns:
- the user hook for 'afterUpdate' plugin
-
setBeforeElementsUpdateHook
public final void setBeforeElementsUpdateHook(BeforeElementsUpdateHook beforeElementsUpdateHook)
Sets the user hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.- Parameters:
beforeElementsUpdateHook- the user hook for 'beforeElementsUpdate' plugin
-
setBeforeElementsUpdateHook
public final void setBeforeElementsUpdateHook(NativeHook nativeBeforeElementsUpdateHook)
Sets the user native hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.- Parameters:
nativeBeforeElementsUpdateHook- the user hook for 'beforeElementsUpdate' plugin
-
getBeforeElementsUpdateHook
public final BeforeElementsUpdateHook getBeforeElementsUpdateHook()
Returns the user hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.- Returns:
- the user hook for 'beforeElementsUpdate' plugin
-
setBeforeLayoutHook
public final void setBeforeLayoutHook(BeforeLayoutHook beforeLayoutHook)
Sets the user hook for 'beforeLayout' plugin.
Called before laying out 'chart'.
If any plugin returnsfalse, the layout update is cancelled until another 'update' is triggered.- Parameters:
beforeLayoutHook- the user hook for 'beforeLayout' plugin
-
setBeforeLayoutHook
public final void setBeforeLayoutHook(NativeHook nativeBeforeLayoutHook)
Sets the user native hook for 'beforeLayout' plugin.
Called before laying out 'chart'.
If any plugin returnsfalse, the layout update is cancelled until another 'update' is triggered.- Parameters:
nativeBeforeLayoutHook- the user hook for 'beforeLayout' plugin
-
getBeforeLayoutHook
public final BeforeLayoutHook getBeforeLayoutHook()
Returns the user hook for 'beforeLayout' plugin.
Called before laying out 'chart'.
If any plugin returnsfalse, the layout update is cancelled until another 'update' is triggered.- Returns:
- the user hook for 'beforeLayout' plugin
-
setAfterLayoutHook
public final void setAfterLayoutHook(AfterLayoutHook afterLayoutHook)
Sets the user hook for 'afterLayout' plugin.
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.- Parameters:
afterLayoutHook- the user hook for 'afterLayout' plugin
-
setAfterLayoutHook
public final void setAfterLayoutHook(NativeHook nativeAfterLayoutHook)
Sets the user native hook for 'afterLayout' plugin.
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.- Parameters:
nativeAfterLayoutHook- the user hook for 'afterLayout' plugin
-
getAfterLayoutHook
public final AfterLayoutHook getAfterLayoutHook()
Returns the user hook for 'afterLayout' plugin.
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.- Returns:
- the user hook for 'afterLayout' plugin
-
setBeforeDatasetsUpdateHook
public final void setBeforeDatasetsUpdateHook(BeforeDatasetsUpdateHook beforeDatasetsUpdateHook)
Sets the user hook for 'beforeDatasetsUpdate' plugin.
Called before updating the 'chart' datasets.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.- Parameters:
beforeDatasetsUpdateHook- the user hook for 'beforeDatasetsUpdate' plugin
-
setBeforeDatasetsUpdateHook
public final void setBeforeDatasetsUpdateHook(NativeHook nativeBeforeDatasetsUpdateHook)
Sets the user native hook for 'beforeDatasetsUpdate' plugin.
Called before updating the 'chart' datasets.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.- Parameters:
nativeBeforeDatasetsUpdateHook- the user hook for 'beforeDatasetsUpdate' plugin
-
getBeforeDatasetsUpdateHook
public final BeforeDatasetsUpdateHook getBeforeDatasetsUpdateHook()
Returns the user hook for 'beforeDatasetsUpdate' plugin.
Called before updating the 'chart' datasets.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.- Returns:
- the user hook for 'beforeDatasetsUpdate' plugin
-
setAfterDatasetsUpdateHook
public final void setAfterDatasetsUpdateHook(AfterDatasetsUpdateHook afterDatasetsUpdateHook)
Sets the user hook for 'afterDatasetsUpdate' plugin.
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.- Parameters:
afterDatasetsUpdateHook- the user hook for 'afterDatasetsUpdate' plugin
-
setAfterDatasetsUpdateHook
public final void setAfterDatasetsUpdateHook(NativeHook nativeAfterDatasetsUpdateHook)
Sets the user native hook for 'afterDatasetsUpdate' plugin.
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.- Parameters:
nativeAfterDatasetsUpdateHook- the user hook for 'afterDatasetsUpdate' plugin
-
getAfterDatasetsUpdateHook
public final AfterDatasetsUpdateHook getAfterDatasetsUpdateHook()
Returns the user hook for 'afterDatasetsUpdate' plugin.
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.- Returns:
- the user hook for 'afterDatasetsUpdate' plugin
-
setBeforeDatasetUpdateHook
public final void setBeforeDatasetUpdateHook(BeforeDatasetUpdateHook beforeDatasetUpdateHook)
Sets the user hook for 'beforeDatasetUpdate' plugin.
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.- Parameters:
beforeDatasetUpdateHook- the user hook for 'beforeDatasetUpdate' plugin
-
setBeforeDatasetUpdateHook
public final void setBeforeDatasetUpdateHook(NativeHook nativeBeforeDatasetUpdateHook)
Sets the user native hook for 'beforeDatasetUpdate' plugin.
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.- Parameters:
nativeBeforeDatasetUpdateHook- the user hook for 'beforeDatasetUpdate' plugin
-
getBeforeDatasetUpdateHook
public final BeforeDatasetUpdateHook getBeforeDatasetUpdateHook()
Returns the user hook for 'beforeDatasetUpdate' plugin.
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse, the datasets update is cancelled until another 'update' is triggered.- Returns:
- the user hook for 'beforeDatasetUpdate' plugin
-
setAfterDatasetUpdateHook
public final void setAfterDatasetUpdateHook(AfterDatasetUpdateHook afterDatasetUpdateHook)
Sets the user hook for 'afterDatasetUpdate' plugin.
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.- Parameters:
afterDatasetUpdateHook- the user hook for 'afterDatasetUpdate' plugin
-
setAfterDatasetUpdateHook
public final void setAfterDatasetUpdateHook(NativeHook nativeAfterDatasetUpdateHook)
Sets the user native hook for 'afterDatasetUpdate' plugin.
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.- Parameters:
nativeAfterDatasetUpdateHook- the user hook for 'afterDatasetUpdate' plugin
-
getAfterDatasetUpdateHook
public final AfterDatasetUpdateHook getAfterDatasetUpdateHook()
Returns the user hook for 'afterDatasetUpdate' plugin.
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.- Returns:
- the user hook for 'afterDatasetUpdate' plugin
-
setBeforeRenderHook
public final void setBeforeRenderHook(BeforeRenderHook beforeRenderHook)
Sets the user hook for 'beforeRender' plugin.
Called before rendering 'chart'.
If any plugin returnsfalse, the rendering is cancelled until another 'render' is triggered.- Parameters:
beforeRenderHook- the user hook for 'beforeRender' plugin
-
setBeforeRenderHook
public final void setBeforeRenderHook(NativeHook nativeBeforeRenderHook)
Sets the user native hook for 'beforeRender' plugin.
Called before rendering 'chart'.
If any plugin returnsfalse, the rendering is cancelled until another 'render' is triggered.- Parameters:
nativeBeforeRenderHook- the user hook for 'beforeRender' plugin
-
getBeforeRenderHook
public final BeforeRenderHook getBeforeRenderHook()
Returns the user hook for 'beforeRender' plugin.
Called before rendering 'chart'.
If any plugin returnsfalse, the rendering is cancelled until another 'render' is triggered.- Returns:
- the user hook for 'beforeRender' plugin
-
setAfterRenderHook
public final void setAfterRenderHook(AfterRenderHook afterRenderHook)
Sets the user hook for 'afterRender' plugin.
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.- Parameters:
afterRenderHook- the user hook for 'afterRender' plugin
-
setAfterRenderHook
public final void setAfterRenderHook(NativeHook nativeAfterRenderHook)
Sets the user native hook for 'afterRender' plugin.
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.- Parameters:
nativeAfterRenderHook- the user hook for 'afterRender' plugin
-
getAfterRenderHook
public final AfterRenderHook getAfterRenderHook()
Returns the user hook for 'afterRender' plugin.
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.- Returns:
- the user hook for 'afterRender' plugin
-
setBeforeDrawHook
public final void setBeforeDrawHook(BeforeDrawHook beforeDrawHook)
Sets the user hook for 'beforeDraw' plugin.
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse, the frame drawing is cancelled until another 'render' is triggered.- Parameters:
beforeDrawHook- the user hook for 'beforeDraw' plugin
-
setBeforeDrawHook
public final void setBeforeDrawHook(NativeHook nativeBeforeDrawHook)
Sets the user native hook for 'beforeDraw' plugin.
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse, the frame drawing is cancelled until another 'render' is triggered.- Parameters:
nativeBeforeDrawHook- the user hook for 'beforeDraw' plugin
-
getBeforeDrawHook
public final BeforeDrawHook getBeforeDrawHook()
Returns the user hook for 'beforeDraw' plugin.
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse, the frame drawing is cancelled until another 'render' is triggered.- Returns:
- the user hook for 'beforeDraw' plugin
-
setAfterDrawHook
public final void setAfterDrawHook(AfterDrawHook afterDrawHook)
Sets the user hook for 'afterDraw' plugin.
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.- Parameters:
afterDrawHook- the user hook for 'afterDraw' plugin
-
setAfterDrawHook
public final void setAfterDrawHook(NativeHook nativeAfterDrawHook)
Sets the user native hook for 'afterDraw' plugin.
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.- Parameters:
nativeAfterDrawHook- the user hook for 'afterDraw' plugin
-
getAfterDrawHook
public final AfterDrawHook getAfterDrawHook()
Returns the user hook for 'afterDraw' plugin.
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.- Returns:
- the user hook for 'afterDraw' plugin
-
setBeforeDatasetsDrawHook
public final void setBeforeDatasetsDrawHook(BeforeDatasetsDrawHook beforeDatasetsDrawHook)
Sets the user hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.- Parameters:
beforeDatasetsDrawHook- the user hook for 'beforeDatasetsDraw' plugin
-
setBeforeDatasetsDrawHook
public final void setBeforeDatasetsDrawHook(NativeHook nativeBeforeDatasetsDrawHook)
Sets the user native hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.- Parameters:
nativeBeforeDatasetsDrawHook- the user hook for 'beforeDatasetsDraw' plugin
-
getBeforeDatasetsDrawHook
public final BeforeDatasetsDrawHook getBeforeDatasetsDrawHook()
Returns the user hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.- Returns:
- the user hook for 'beforeDatasetsDraw' plugin
-
setAfterDatasetsDrawHook
public final void setAfterDatasetsDrawHook(AfterDatasetsDrawHook afterDatasetsDrawHook)
Sets the user hook for 'afterDatasetsDraw' plugin.
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.- Parameters:
afterDatasetsDrawHook- the user hook for 'afterDatasetsDraw' plugin
-
setAfterDatasetsDrawHook
public final void setAfterDatasetsDrawHook(NativeHook nativeAfterDatasetsDrawHook)
Sets the user native hook for 'afterDatasetsDraw' plugin.
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.- Parameters:
nativeAfterDatasetsDrawHook- the user hook for 'afterDatasetsDraw' plugin
-
getAfterDatasetsDrawHook
public final AfterDatasetsDrawHook getAfterDatasetsDrawHook()
Returns the user hook for 'afterDatasetsDraw' plugin.
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.- Returns:
- the user hook for 'afterDatasetsDraw' plugin
-
setBeforeDatasetDrawHook
public final void setBeforeDatasetDrawHook(BeforeDatasetDrawHook beforeDatasetDrawHook)
Sets the user hook for 'beforeDatasetDraw' plugin.
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.- Parameters:
beforeDatasetDrawHook- the user hook for 'beforeDatasetDraw' plugin
-
setBeforeDatasetDrawHook
public final void setBeforeDatasetDrawHook(NativeHook nativeBeforeDatasetDrawHook)
Sets the user native hook for 'beforeDatasetDraw' plugin.
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.- Parameters:
nativeBeforeDatasetDrawHook- the user hook for 'beforeDatasetDraw' plugin
-
getBeforeDatasetDrawHook
public final BeforeDatasetDrawHook getBeforeDatasetDrawHook()
Returns the user hook for 'beforeDatasetDraw' plugin.
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse, the datasets drawing is cancelled until another 'render' is triggered.- Returns:
- the user hook for 'beforeDatasetDraw' plugin
-
setAfterDatasetDrawHook
public final void setAfterDatasetDrawHook(AfterDatasetDrawHook afterDatasetDrawHook)
Sets the user hook for 'afterDatasetDraw' plugin.
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.- Parameters:
afterDatasetDrawHook- the user hook for 'afterDatasetDraw' plugin
-
setAfterDatasetDrawHook
public final void setAfterDatasetDrawHook(NativeHook nativeAfterDatasetDrawHook)
Sets the user native hook for 'afterDatasetDraw' plugin.
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.- Parameters:
nativeAfterDatasetDrawHook- the user hook for 'afterDatasetDraw' plugin
-
getAfterDatasetDrawHook
public final AfterDatasetDrawHook getAfterDatasetDrawHook()
Returns the user hook for 'afterDatasetDraw' plugin.
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.- Returns:
- the user hook for 'afterDatasetDraw' plugin
-
setBeforeTooltipDrawHook
public final void setBeforeTooltipDrawHook(BeforeTooltipDrawHook beforeTooltipDrawHook)
Sets the user hook for 'beforeTooltipDraw' plugin.
Called before drawing the 'tooltip'.
If any plugin returnsfalse, the tooltip drawing is cancelled until another 'render' is triggered.- Parameters:
beforeTooltipDrawHook- the user hook for 'beforeTooltipDraw' plugin
-
setBeforeTooltipDrawHook
public final void setBeforeTooltipDrawHook(NativeHook nativeBeforeTooltipDrawHook)
Sets the user native hook for 'beforeTooltipDraw' plugin.
Called before drawing the 'tooltip'.
If any plugin returnsfalse, the tooltip drawing is cancelled until another 'render' is triggered.- Parameters:
nativeBeforeTooltipDrawHook- the user hook for 'beforeTooltipDraw' plugin
-
getBeforeTooltipDrawHook
public final BeforeTooltipDrawHook getBeforeTooltipDrawHook()
Returns the user hook for 'beforeTooltipDraw' plugin.
Called before drawing the 'tooltip'.
If any plugin returnsfalse, the tooltip drawing is cancelled until another 'render' is triggered.- Returns:
- the user hook for 'beforeTooltipDraw' plugin
-
setAfterTooltipDrawHook
public final void setAfterTooltipDrawHook(AfterTooltipDrawHook afterTooltipDrawHook)
Sets the user hook for 'afterTooltipDraw' plugin.
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.- Parameters:
afterTooltipDrawHook- the user hook for 'afterTooltipDraw' plugin
-
setAfterTooltipDrawHook
public final void setAfterTooltipDrawHook(NativeHook nativeAfterTooltipDrawHook)
Sets the user native hook for 'afterTooltipDraw' plugin.
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.- Parameters:
nativeAfterTooltipDrawHook- the user hook for 'afterTooltipDraw' plugin
-
getAfterTooltipDrawHook
public final AfterTooltipDrawHook getAfterTooltipDrawHook()
Returns the user hook for 'afterTooltipDraw' plugin.
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.- Returns:
- the user hook for 'afterTooltipDraw' plugin
-
setBeforeEventHook
public final void setBeforeEventHook(BeforeEventHook beforeEventHook)
Sets the user hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse, the event will be discarded.- Parameters:
beforeEventHook- the user hook for 'beforeEvent' plugin
-
setBeforeEventHook
public final void setBeforeEventHook(NativeHook nativeBeforeEventHook)
Sets the user native hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse, the event will be discarded.- Parameters:
nativeBeforeEventHook- the user hook for 'beforeEvent' plugin
-
getBeforeEventHook
public final BeforeEventHook getBeforeEventHook()
Returns the user hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse, the event will be discarded.- Returns:
- the user hook for 'beforeEvent' plugin
-
setAfterEventHook
public final void setAfterEventHook(AfterEventHook afterEventHook)
Sets the user hook for 'afterEvent' plugin.
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.- Parameters:
afterEventHook- the user hook for 'afterEvent' plugin
-
setAfterEventHook
public final void setAfterEventHook(NativeHook nativeAfterEventHook)
Sets the user native hook for 'afterEvent' plugin.
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.- Parameters:
nativeAfterEventHook- the user hook for 'afterEvent' plugin
-
getAfterEventHook
public final AfterEventHook getAfterEventHook()
Returns the user hook for 'afterEvent' plugin.
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.- Returns:
- the user hook for 'afterEvent' plugin
-
setResizeHook
public final void setResizeHook(ResizeHook resizeHook)
Sets the user hook for 'resize' plugin.
Called after the chart as been resized.- Parameters:
resizeHook- the user hook for 'resize' plugin
-
setResizeHook
public final void setResizeHook(NativeHook nativeResizeHook)
Sets the user native hook for 'resize' plugin.
Called after the chart as been resized.- Parameters:
nativeResizeHook- the user hook for 'resize' plugin
-
getResizeHook
public final ResizeHook getResizeHook()
Returns the user hook for 'resize' plugin.
Called after the chart as been resized.- Returns:
- the user hook for 'resize' plugin
-
setResetHook
public final void setResetHook(ResetHook resetHook)
Sets the user hook for 'reset' plugin.
Called during chart reset.- Parameters:
resetHook- the user hook for 'reset' plugin
-
setResetHook
public final void setResetHook(NativeHook nativeResetHook)
Sets the user native hook for 'reset' plugin.
Called during chart reset.- Parameters:
nativeResetHook- the user hook for 'reset' plugin
-
getResetHook
public final ResetHook getResetHook()
Returns the user hook for 'reset' plugin.
Called during chart reset.- Returns:
- the user hook for 'reset' plugin
-
setBeforeDestroyHook
public final void setBeforeDestroyHook(BeforeDestroyHook beforeDestroyHook)
Sets the user hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.- Parameters:
beforeDestroyHook- the user hook for 'beforeDestroy' plugin
-
setBeforeDestroyHook
public final void setBeforeDestroyHook(NativeHook nativeBeforeDestroyHook)
Sets the user native hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.- Parameters:
nativeBeforeDestroyHook- the user hook for 'beforeDestroy' plugin
-
getBeforeDestroyHook
public final BeforeDestroyHook getBeforeDestroyHook()
Returns the user hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.- Returns:
- the user hook for 'beforeDestroy' plugin
-
setAfterDestroyHook
public final void setAfterDestroyHook(AfterDestroyHook afterDestroyHook)
Sets the user hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.- Parameters:
afterDestroyHook- the user hook for 'afterDestroy' plugin
-
setAfterDestroyHook
public final void setAfterDestroyHook(NativeHook nativeAfterDestroyHook)
Sets the user native hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.- Parameters:
nativeAfterDestroyHook- the user hook for 'afterDestroy' plugin
-
getAfterDestroyHook
public final AfterDestroyHook getAfterDestroyHook()
Returns the user hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.- Returns:
- the user hook for 'afterDestroy' plugin
-
setInstallHook
public final void setInstallHook(InstallHook installHook)
Sets the user hook for 'install' plugin.
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).- Parameters:
installHook- the user hook for 'install' plugin
-
setInstallHook
public final void setInstallHook(NativeHook nativeInstallHook)
Sets the user native hook for 'install' plugin.
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).- Parameters:
nativeInstallHook- the user hook for 'install' plugin
-
getInstallHook
public final InstallHook getInstallHook()
Returns the user hook for 'install' plugin.
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).- Returns:
- the user hook for 'install' plugin
-
setStartHook
public final void setStartHook(StartHook startHook)
Sets the user hook for 'start' plugin.
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.- Parameters:
startHook- the user hook for 'start' plugin
-
setStartHook
public final void setStartHook(NativeHook nativeStartHook)
Sets the user native hook for 'start' plugin.
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.- Parameters:
nativeStartHook- the user hook for 'start' plugin
-
getStartHook
public final StartHook getStartHook()
Returns the user hook for 'start' plugin.
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.- Returns:
- the user hook for 'start' plugin
-
setStopHook
public final void setStopHook(StopHook stopHook)
Sets the user hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.- Parameters:
stopHook- the user hook for 'stop' plugin
-
setStopHook
public final void setStopHook(NativeHook nativeStopHook)
Sets the user native hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.- Parameters:
nativeStopHook- the user hook for 'stop' plugin
-
getStopHook
public final StopHook getStopHook()
Returns the user hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.- Returns:
- the user hook for 'stop' plugin
-
setUninstallHook
public final void setUninstallHook(UninstallHook uninstallHook)
Sets the user hook for 'uninstall' plugin.
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false).- Parameters:
uninstallHook- the user hook for 'uninstall' plugin
-
setUninstallHook
public final void setUninstallHook(NativeHook nativeUninstallHook)
Sets the user native hook for 'uninstall' plugin.
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false).- Parameters:
nativeUninstallHook- the user hook for 'uninstall' plugin
-
getUninstallHook
public final UninstallHook getUninstallHook()
Returns the user hook for 'uninstall' plugin.
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false).- Returns:
- the user hook for 'uninstall' plugin
-
setBeforeDataLimitsHook
public final void setBeforeDataLimitsHook(BeforeDataLimitsHook beforeDataLimitsHook)
Sets the user hook for 'beforeDataLimits' plugin.
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.- Parameters:
beforeDataLimitsHook- the user hook for 'beforeDataLimits' plugin
-
setBeforeDataLimitsHook
public final void setBeforeDataLimitsHook(NativeHook nativeBeforeDataLimitsHook)
Sets the user native hook for 'beforeDataLimits' plugin.
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.- Parameters:
nativeBeforeDataLimitsHook- the user hook for 'beforeDataLimits' plugin
-
getBeforeDataLimitsHook
public final BeforeDataLimitsHook getBeforeDataLimitsHook()
Returns the user hook for 'beforeDataLimits' plugin.
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.- Returns:
- the user hook for 'beforeDataLimits' plugin
-
setAfterDataLimitsHook
public final void setAfterDataLimitsHook(AfterDataLimitsHook afterDataLimitsHook)
Sets the user hook for 'afterDataLimits' plugin.
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.- Parameters:
afterDataLimitsHook- the user hook for 'afterDataLimits' plugin
-
setAfterDataLimitsHook
public final void setAfterDataLimitsHook(NativeHook nativeAfterDataLimitsHook)
Sets the user native hook for 'afterDataLimits' plugin.
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.- Parameters:
nativeAfterDataLimitsHook- the user hook for 'afterDataLimits' plugin
-
getAfterDataLimitsHook
public final AfterDataLimitsHook getAfterDataLimitsHook()
Returns the user hook for 'afterDataLimits' plugin.
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.- Returns:
- the user hook for 'afterDataLimits' plugin
-
setBeforeBuildTicksHook
public final void setBeforeBuildTicksHook(BeforeBuildTicksHook beforeBuildTicksHook)
Sets the user hook for 'beforeBuildTicks' plugin.
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.- Parameters:
beforeBuildTicksHook- the user hook for 'beforeBuildTicks' plugin
-
setBeforeBuildTicksHook
public final void setBeforeBuildTicksHook(NativeHook nativeBeforeBuildTicksHook)
Sets the user native hook for 'beforeBuildTicks' plugin.
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.- Parameters:
nativeBeforeBuildTicksHook- the user hook for 'beforeBuildTicks' plugin
-
getBeforeBuildTicksHook
public final BeforeBuildTicksHook getBeforeBuildTicksHook()
Returns the user hook for 'beforeBuildTicks' plugin.
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.- Returns:
- the user hook for 'beforeBuildTicks' plugin
-
setAfterBuildTicksHook
public final void setAfterBuildTicksHook(AfterBuildTicksHook afterBuildTicksHook)
Sets the user hook for 'afterBuildTicks' plugin.
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.- Parameters:
afterBuildTicksHook- the user hook for 'afterBuildTicks' plugin
-
setAfterBuildTicksHook
public final void setAfterBuildTicksHook(NativeHook nativeAfterBuildTicksHook)
Sets the user native hook for 'afterBuildTicks' plugin.
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.- Parameters:
nativeAfterBuildTicksHook- the user hook for 'afterBuildTicks' plugin
-
getAfterBuildTicksHook
public final AfterBuildTicksHook getAfterBuildTicksHook()
Returns the user hook for 'afterBuildTicks' plugin.
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.- Returns:
- the user hook for 'afterBuildTicks' plugin
-
-