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.
|
String |
getId()
Plugins must define a unique id in order to be configurable.
Returns the plugin id. |
void |
onAfterEvent(IsChart chart,
BaseNativeEvent event)
Called after the 'event' has been consumed.
|
boolean |
onBeforeUpdate(IsChart chart)
Called before updating 'chart'.
|
void |
onDestroy(IsChart chart)
Called after the chart as been destroyed.
|
onAfterDatasetDraw, onAfterDatasetsDraw, onAfterDatasetsUpdate, onAfterDatasetUpdate, onAfterDraw, onAfterInit, onAfterLayout, onAfterRender, onAfterTooltipDraw, onAfterUpdate, onBeforeDatasetDraw, onBeforeDatasetsDraw, onBeforeDatasetsUpdate, onBeforeDatasetUpdate, onBeforeDraw, onBeforeEvent, onBeforeInit, onBeforeLayout, onBeforeRender, onBeforeTooltipDraw, onConfigure, onResize, toStringpublic static final String ID
public static final ChartPointerOptionsFactory FACTORY
public static ChartPointer get()
public String getId()
Pluginpublic boolean onBeforeUpdate(IsChart chart)
Pluginfalse, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.onBeforeUpdate in interface PluginonBeforeUpdate in class AbstractPluginchart - the chart instance.false to cancel the chart update.public void onAfterEvent(IsChart chart, BaseNativeEvent event)
PluginonAfterEvent in interface PluginonAfterEvent in class AbstractPluginchart - the chart instance.event - The event object.