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 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.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.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.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.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.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.AfterDestroyHook
getAfterDestroyHook()
Returns the user hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.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.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.AfterInitHook
getAfterInitHook()
Returns the user hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.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.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.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.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.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.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.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.BeforeDatasetsDrawHook
getBeforeDatasetsDrawHook()
Returns the user hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.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.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.BeforeDestroyHook
getBeforeDestroyHook()
Returns the user hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.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.BeforeElementsUpdateHook
getBeforeElementsUpdateHook()
Returns the user hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.BeforeEventHook
getBeforeEventHook()
Returns the user hook for 'beforeEvent' plugin.
Called before processing the specified 'event'.
If any plugin returnsfalse
, the event will be discarded.BeforeInitHook
getBeforeInitHook()
Returns the user hook for 'beforeInit' plugin.
Called before initializing 'chart'.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.BeforeRenderHook
getBeforeRenderHook()
Returns the user hook for 'beforeRender' plugin.
Called before rendering 'chart'.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.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.ConfigureHook
getConfigureHook()
Called before initializing configuration of 'chart'.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).ResetHook
getResetHook()
Returns the user hook for 'reset' plugin.
Called during chart reset.ResizeHook
getResizeHook()
Returns the user hook for 'resize' plugin.
Called after the chart as been resized.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.StopHook
getStopHook()
Returns the user hook for 'stop' plugin.
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.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).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.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.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.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.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.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.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.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.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.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.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.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.void
setAfterDestroyHook(AfterDestroyHook afterDestroyHook)
Sets the user hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.void
setAfterDestroyHook(NativeHook nativeAfterDestroyHook)
Sets the user native hook for 'afterDestroy' plugin.
Called after the chart has been destroyed.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.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.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.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.void
setAfterInitHook(AfterInitHook afterInitHook)
Sets the user hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.void
setAfterInitHook(NativeHook nativeAfterInitHook)
Sets the user native hook for 'afterInit' plugin.
Called after 'chart' has been initialized and before the first update.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.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.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.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.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.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.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.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.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.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.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.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.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.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.void
setBeforeDatasetsDrawHook(BeforeDatasetsDrawHook beforeDatasetsDrawHook)
Sets the user hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.void
setBeforeDatasetsDrawHook(NativeHook nativeBeforeDatasetsDrawHook)
Sets the user native hook for 'beforeDatasetsDraw' plugin.
Called before drawing the 'chart' datasets.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.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.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.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.void
setBeforeDestroyHook(BeforeDestroyHook beforeDestroyHook)
Sets the user hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.void
setBeforeDestroyHook(NativeHook nativeBeforeDestroyHook)
Sets the user native hook for 'beforeDestroy' plugin.
Called before the chart is being destroyed.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.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.void
setBeforeElementsUpdateHook(BeforeElementsUpdateHook beforeElementsUpdateHook)
Sets the user hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.void
setBeforeElementsUpdateHook(NativeHook nativeBeforeElementsUpdateHook)
Sets the user native hook for 'beforeElementsUpdate' plugin.
Called during the update process, before any chart elements have been created.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.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.void
setBeforeInitHook(BeforeInitHook beforeInitHook)
Sets the user hook for 'beforeInit' plugin.
Called before initializing 'chart'.void
setBeforeInitHook(NativeHook nativeBeforeInitHook)
Sets the user native hook for 'beforeInit' plugin.
Called before initializing 'chart'.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.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.void
setBeforeRenderHook(BeforeRenderHook beforeRenderHook)
Sets the user hook for 'beforeRender' plugin.
Called before rendering 'chart'.void
setBeforeRenderHook(NativeHook nativeBeforeRenderHook)
Sets the user native hook for 'beforeRender' plugin.
Called before rendering 'chart'.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.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.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.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.void
setConfigureHook(ConfigureHook configureHook)
Called before initializing configuration of 'chart'.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).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).void
setResetHook(ResetHook resetHook)
Sets the user hook for 'reset' plugin.
Called during chart reset.void
setResetHook(NativeHook nativeResetHook)
Sets the user native hook for 'reset' plugin.
Called during chart reset.void
setResizeHook(ResizeHook resizeHook)
Sets the user hook for 'resize' plugin.
Called after the chart as been resized.void
setResizeHook(NativeHook nativeResizeHook)
Sets the user native hook for 'resize' plugin.
Called after the chart as been resized.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.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.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.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.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).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).-
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
-
-