public final class DatasetsItemsSelector extends AbstractPlugin
AtLeastOneDatasetHandler
Modifier and Type | Field and Description |
---|---|
static DatasetsItemsSelectorOptionsFactory |
FACTORY
The factory to read options for plugin
|
static String |
ID
Plugin ID "datasetsitemsselector"
|
Constructor and Description |
---|
DatasetsItemsSelector() |
Modifier and Type | Method and Description |
---|---|
void |
clearSelection(AbstractChart<?,?> chart)
Clears the selection on the chart.
|
void |
clearSelection(AbstractChart<?,?> chart,
boolean fireEvent)
Clears the selection on the chart and set if an event should fire on clear action.
|
String |
getId()
Plugins must define a unique id in order to be configurable.
Returns the plugin id. |
double |
getPadding(AbstractChart<?,?> chart)
Returns the padding height used by clear selection element if enabled.
This is very helpful when you have added padding for your purposes and you need to know the amount of space that the element allocated. |
void |
onAfterDraw(AbstractChart<?,?> chart,
double easing)
Called after the 'chart' has been drawn for the specific easing value.
|
boolean |
onBeforeEvent(AbstractChart<?,?> chart,
ChartNativeEvent event)
Called before processing the specified 'event'.
|
void |
onConfigure(AbstractChart<?,?> chart)
Called before initializing configuration of 'chart'.
|
void |
onDestroy(AbstractChart<?,?> chart)
Called after the chart as been destroyed.
|
void |
skipNextRefreshFireEvent(AbstractChart<?,?> chart)
Sets a flag to skip to send event after refresh.
|
onAfterDatasetDraw, onAfterDatasetsDraw, onAfterDatasetsUpdate, onAfterDatasetUpdate, onAfterEvent, onAfterInit, onAfterLayout, onAfterRender, onAfterTooltipDraw, onAfterUpdate, onBeforeDatasetDraw, onBeforeDatasetsDraw, onBeforeDatasetsUpdate, onBeforeDatasetUpdate, onBeforeDraw, onBeforeInit, onBeforeLayout, onBeforeRender, onBeforeTooltipDraw, onBeforeUpdate, onResize, toString
public static final String ID
public static final DatasetsItemsSelectorOptionsFactory FACTORY
public double getPadding(AbstractChart<?,?> chart)
chart
- chart instance0
if disabledpublic void clearSelection(AbstractChart<?,?> chart)
chart
- chart instance to clear the selectionDatasetsItemsSelectorOptions.isFireEventOnClearSelection()
,
DatasetsItemsSelectorOptions.setFireEventOnClearSelection(boolean)
public void clearSelection(AbstractChart<?,?> chart, boolean fireEvent)
chart
- chart instance to clear the selectionfireEvent
- if true
an event is fired otherwise not.public void skipNextRefreshFireEvent(AbstractChart<?,?> chart)
chart
- chart instance to apply the fire events skipping.public String getId()
Plugin
public void onConfigure(AbstractChart<?,?> chart)
Plugin
onConfigure
in interface Plugin
onConfigure
in class AbstractPlugin
chart
- the chart instance.public void onAfterDraw(AbstractChart<?,?> chart, double easing)
Plugin
onAfterDraw
in interface Plugin
onAfterDraw
in class AbstractPlugin
chart
- the chart instance.easing
- The current animation value, between 0.0 and 1.0.public void onDestroy(AbstractChart<?,?> chart)
Plugin
onDestroy
in interface Plugin
onDestroy
in class AbstractPlugin
chart
- the chart instance.public boolean onBeforeEvent(AbstractChart<?,?> chart, ChartNativeEvent event)
Plugin
false
, the event will be discarded.onBeforeEvent
in interface Plugin
onBeforeEvent
in class AbstractPlugin
chart
- the chart instance.event
- The event object.false
to discard the event.