public final class ChartPointer extends AbstractPlugin
CursorType
Modifier and Type | Field and Description |
---|---|
static ChartPointerOptionsFactory |
FACTORY
The factory to create options for plugin.
|
static String |
ID
Plugin ID "charbacursorpointer".
|
Modifier and Type | Method and Description |
---|---|
static ChartPointer |
get()
Returns the singleton instance of plugin.
|
void |
onAfterEvent(IsChart chart,
PluginEventArgument argument)
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded. |
boolean |
onBeforeUpdate(IsChart chart,
PluginUpdateArgument argument)
Called before updating 'chart'.
If any plugin returns false , the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered. |
void |
onDestroy(IsChart chart)
Called after the chart as been destroyed.
|
getId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
onAfterBuildTicks, onAfterDataLimits, onAfterDatasetDraw, onAfterDatasetsDraw, onAfterDatasetsUpdate, onAfterDatasetUpdate, onAfterDraw, onAfterInit, onAfterLayout, onAfterRender, onAfterTooltipDraw, onAfterUpdate, onBeforeBuildTicks, onBeforeDataLimits, onBeforeDatasetDraw, onBeforeDatasetsDraw, onBeforeDatasetsUpdate, onBeforeDatasetUpdate, onBeforeDraw, onBeforeElementsUpdate, onBeforeEvent, onBeforeInit, onBeforeLayout, onBeforeRender, onBeforeTooltipDraw, onBeginDrawing, onConfigure, onEndDrawing, onInstall, onReset, onResize, onStart, onStop, onUninstall
public static final String ID
public static final ChartPointerOptionsFactory FACTORY
public static ChartPointer get()
public boolean onBeforeUpdate(IsChart chart, PluginUpdateArgument argument)
Plugin
false
, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.chart
- the chart instance.argument
- the argument passed for updatefalse
to cancel the chart update.public void onAfterEvent(IsChart chart, PluginEventArgument argument)
Plugin
chart
- the chart instance.argument
- instance which contains event context