public abstract class AbstractPlugin extends Object implements Plugin
getId which must implemented.onBefore* cancellable methods return true.| Constructor and Description |
|---|
AbstractPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterDatasetDraw(IsChart chart,
DatasetPluginItem item)
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
|
void |
onAfterDatasetsDraw(IsChart chart,
double easing)
Called after the 'chart' datasets have been drawn.
|
void |
onAfterDatasetsUpdate(IsChart chart)
Called after the 'chart' datasets have been updated.
|
void |
onAfterDatasetUpdate(IsChart chart,
DatasetPluginItem item)
Called after the 'chart' datasets at the given 'args.index' has been updated.
|
void |
onAfterDraw(IsChart chart,
double easing)
Called after the 'chart' has been drawn for the specific easing value.
|
void |
onAfterEvent(IsChart chart,
ChartNativeEvent event)
Called after the 'event' has been consumed.
|
void |
onAfterInit(IsChart chart)
Called after 'chart' has been initialized and before the first update.
|
void |
onAfterLayout(IsChart chart)
Called after the 'chart' has been layed out.
|
void |
onAfterRender(IsChart chart)
Called after the 'chart' has been fully rendered (and animation completed).
|
void |
onAfterTooltipDraw(IsChart chart,
TooltipPluginItem item)
Called after drawing the 'tooltip'.
|
void |
onAfterUpdate(IsChart chart)
Called after 'chart' has been updated and before rendering.
|
boolean |
onBeforeDatasetDraw(IsChart chart,
DatasetPluginItem item)
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
|
boolean |
onBeforeDatasetsDraw(IsChart chart,
double easing)
Called before drawing the 'chart' datasets.
|
boolean |
onBeforeDatasetsUpdate(IsChart chart)
Called before updating the 'chart' datasets.
|
boolean |
onBeforeDatasetUpdate(IsChart chart,
DatasetPluginItem item)
Called before updating the 'chart' dataset at the given 'args.index'.
|
boolean |
onBeforeDraw(IsChart chart,
double easing)
Called before drawing 'chart' at every animation frame specified by the given easing value.
|
boolean |
onBeforeEvent(IsChart chart,
ChartNativeEvent event)
Called before processing the specified 'event'.
|
void |
onBeforeInit(IsChart chart)
Called before initializing 'chart'.
|
boolean |
onBeforeLayout(IsChart chart)
Called before laying out 'chart'.
|
boolean |
onBeforeRender(IsChart chart)
Called before rendering 'chart'.
|
boolean |
onBeforeTooltipDraw(IsChart chart,
TooltipPluginItem item)
Called before drawing the 'tooltip'.
|
boolean |
onBeforeUpdate(IsChart chart)
Called before updating 'chart'.
|
void |
onConfigure(IsChart chart)
Called before initializing configuration of 'chart'.
|
void |
onDestroy(IsChart chart)
Called after the chart as been destroyed.
|
void |
onResize(IsChart chart,
SizeItem size)
Called after the chart as been resized.
|
String |
toString() |
public void onConfigure(IsChart chart)
PluginonConfigure in interface Pluginchart - the chart instance.public void onBeforeInit(IsChart chart)
PluginonBeforeInit in interface Pluginchart - the chart instance.public void onAfterInit(IsChart chart)
PluginonAfterInit in interface Pluginchart - the chart instance.public boolean onBeforeUpdate(IsChart chart)
Pluginfalse, the update is cancelled (and thus subsequent
render(s)) until another 'update' is triggered.onBeforeUpdate in interface Pluginchart - the chart instance.false to cancel the chart update.public void onAfterUpdate(IsChart chart)
PluginonAfterUpdate in interface Pluginchart - the chart instance.public boolean onBeforeLayout(IsChart chart)
Pluginfalse, the layout update is cancelled until another
'update' is triggered.onBeforeLayout in interface Pluginchart - the chart instance.false to cancel the chart layout.public void onAfterLayout(IsChart chart)
PluginonAfterLayout in interface Pluginchart - the chart instance.public boolean onBeforeDatasetsUpdate(IsChart chart)
Pluginfalse, the datasets update is cancelled
until another 'update' is triggered.onBeforeDatasetsUpdate in interface Pluginchart - the chart instance.false to cancel the datasets update.public void onAfterDatasetsUpdate(IsChart chart)
PluginonAfterDatasetsUpdate in interface Pluginchart - the chart instance.public boolean onBeforeDatasetUpdate(IsChart chart, DatasetPluginItem item)
Pluginfalse, the
datasets update is cancelled until another 'update' is triggered.onBeforeDatasetUpdate in interface Pluginchart - the chart instance.item - the dataset item.false to cancel the chart datasets drawing.public void onAfterDatasetUpdate(IsChart chart, DatasetPluginItem item)
PluginonAfterDatasetUpdate in interface Pluginchart - the chart instance.item - the dataset item.public boolean onBeforeRender(IsChart chart)
Pluginfalse, the rendering is cancelled until another
'render' is triggered.onBeforeRender in interface Pluginchart - the chart instance.false to cancel the chart rendering.public void onAfterRender(IsChart chart)
PluginonAfterRender in interface Pluginchart - the chart instance.public boolean onBeforeDraw(IsChart chart, double easing)
Pluginfalse, the frame drawing is cancelled until another 'render' is triggered.onBeforeDraw in interface Pluginchart - the chart instance.easing - The current animation value, between 0.0 and 1.0.false to cancel the chart drawing.public void onAfterDraw(IsChart chart, double easing)
PluginonAfterDraw in interface Pluginchart - the chart instance.easing - The current animation value, between 0.0 and 1.0.public boolean onBeforeDatasetsDraw(IsChart chart, double easing)
Pluginfalse, the datasets drawing is cancelled
until another 'render' is triggered.onBeforeDatasetsDraw in interface Pluginchart - the chart instance.easing - The current animation value, between 0.0 and 1.0.false to cancel the chart datasets drawing.public void onAfterDatasetsDraw(IsChart chart, double easing)
PluginonAfterDatasetsDraw in interface Pluginchart - the chart instance.easing - The current animation value, between 0.0 and 1.0.public boolean onBeforeDatasetDraw(IsChart chart, DatasetPluginItem item)
Pluginfalse, the datasets drawing is cancelled until another 'render' is triggered.onBeforeDatasetDraw in interface Pluginchart - the chart instance.item - the dataset item.false to cancel the chart datasets drawing.public void onAfterDatasetDraw(IsChart chart, DatasetPluginItem item)
PluginonAfterDatasetDraw in interface Pluginchart - the chart instance.item - the dataset item.public boolean onBeforeTooltipDraw(IsChart chart, TooltipPluginItem item)
Pluginfalse, the tooltip drawing is cancelled until
another 'render' is triggered.onBeforeTooltipDraw in interface Pluginchart - the chart instance.item - The tooltip instance.false to cancel the chart tooltip drawing.public void onAfterTooltipDraw(IsChart chart, TooltipPluginItem item)
PluginonAfterTooltipDraw in interface Pluginchart - the chart instance.item - The tooltip instance.public boolean onBeforeEvent(IsChart chart, ChartNativeEvent event)
Pluginfalse, the event will be discarded.onBeforeEvent in interface Pluginchart - the chart instance.event - The event object.false to discard the event.public void onAfterEvent(IsChart chart, ChartNativeEvent event)
PluginonAfterEvent in interface Pluginchart - the chart instance.event - The event object.public void onResize(IsChart chart, SizeItem size)
Pluginpublic void onDestroy(IsChart chart)
Plugin