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)
Plugin
onConfigure
in interface Plugin
chart
- the chart instance.public void onBeforeInit(IsChart chart)
Plugin
onBeforeInit
in interface Plugin
chart
- the chart instance.public void onAfterInit(IsChart chart)
Plugin
onAfterInit
in interface Plugin
chart
- the chart instance.public boolean onBeforeUpdate(IsChart chart)
Plugin
false
, the update is cancelled (and thus subsequent
render(s)) until another 'update' is triggered.onBeforeUpdate
in interface Plugin
chart
- the chart instance.false
to cancel the chart update.public void onAfterUpdate(IsChart chart)
Plugin
onAfterUpdate
in interface Plugin
chart
- the chart instance.public boolean onBeforeLayout(IsChart chart)
Plugin
false
, the layout update is cancelled until another
'update' is triggered.onBeforeLayout
in interface Plugin
chart
- the chart instance.false
to cancel the chart layout.public void onAfterLayout(IsChart chart)
Plugin
onAfterLayout
in interface Plugin
chart
- the chart instance.public boolean onBeforeDatasetsUpdate(IsChart chart)
Plugin
false
, the datasets update is cancelled
until another 'update' is triggered.onBeforeDatasetsUpdate
in interface Plugin
chart
- the chart instance.false
to cancel the datasets update.public void onAfterDatasetsUpdate(IsChart chart)
Plugin
onAfterDatasetsUpdate
in interface Plugin
chart
- the chart instance.public boolean onBeforeDatasetUpdate(IsChart chart, DatasetPluginItem item)
Plugin
false
, the
datasets update is cancelled until another 'update' is triggered.onBeforeDatasetUpdate
in interface Plugin
chart
- the chart instance.item
- the dataset item.false
to cancel the chart datasets drawing.public void onAfterDatasetUpdate(IsChart chart, DatasetPluginItem item)
Plugin
onAfterDatasetUpdate
in interface Plugin
chart
- the chart instance.item
- the dataset item.public boolean onBeforeRender(IsChart chart)
Plugin
false
, the rendering is cancelled until another
'render' is triggered.onBeforeRender
in interface Plugin
chart
- the chart instance.false
to cancel the chart rendering.public void onAfterRender(IsChart chart)
Plugin
onAfterRender
in interface Plugin
chart
- the chart instance.public boolean onBeforeDraw(IsChart chart, double easing)
Plugin
false
, the frame drawing is cancelled until another 'render' is triggered.onBeforeDraw
in interface Plugin
chart
- 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)
Plugin
onAfterDraw
in interface Plugin
chart
- the chart instance.easing
- The current animation value, between 0.0 and 1.0.public boolean onBeforeDatasetsDraw(IsChart chart, double easing)
Plugin
false
, the datasets drawing is cancelled
until another 'render' is triggered.onBeforeDatasetsDraw
in interface Plugin
chart
- 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)
Plugin
onAfterDatasetsDraw
in interface Plugin
chart
- the chart instance.easing
- The current animation value, between 0.0 and 1.0.public boolean onBeforeDatasetDraw(IsChart chart, DatasetPluginItem item)
Plugin
false
, the datasets drawing is cancelled until another 'render' is triggered.onBeforeDatasetDraw
in interface Plugin
chart
- the chart instance.item
- the dataset item.false
to cancel the chart datasets drawing.public void onAfterDatasetDraw(IsChart chart, DatasetPluginItem item)
Plugin
onAfterDatasetDraw
in interface Plugin
chart
- the chart instance.item
- the dataset item.public boolean onBeforeTooltipDraw(IsChart chart, TooltipPluginItem item)
Plugin
false
, the tooltip drawing is cancelled until
another 'render' is triggered.onBeforeTooltipDraw
in interface Plugin
chart
- the chart instance.item
- The tooltip instance.false
to cancel the chart tooltip drawing.public void onAfterTooltipDraw(IsChart chart, TooltipPluginItem item)
Plugin
onAfterTooltipDraw
in interface Plugin
chart
- the chart instance.item
- The tooltip instance.public boolean onBeforeEvent(IsChart chart, ChartNativeEvent event)
Plugin
false
, the event will be discarded.onBeforeEvent
in interface Plugin
chart
- the chart instance.event
- The event object.false
to discard the event.public void onAfterEvent(IsChart chart, ChartNativeEvent event)
Plugin
onAfterEvent
in interface Plugin
chart
- the chart instance.event
- The event object.public void onResize(IsChart chart, SizeItem size)
Plugin
public void onDestroy(IsChart chart)
Plugin