public final class HtmlLegend extends AbstractPlugin
HtmlLegendLabelsCallback
to generated HTML legend.Modifier and Type | Field and Description |
---|---|
static HtmlLegendOptionsFactory |
FACTORY
The factory to create options for plugin.
|
static String |
ID
Plugin ID "charbahtmllegend".
|
Modifier and Type | Method and Description |
---|---|
static HtmlLegend |
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 |
onAfterDraw(IsChart chart,
double easing)
Called after the 'chart' has been drawn for the specific easing value.
|
boolean |
onBeforeDraw(IsChart chart,
double easing)
Called before drawing 'chart' at every animation frame specified by the given easing value.
|
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.
|
onAfterDatasetDraw, onAfterDatasetsDraw, onAfterDatasetsUpdate, onAfterDatasetUpdate, onAfterEvent, onAfterInit, onAfterLayout, onAfterRender, onAfterTooltipDraw, onAfterUpdate, onBeforeDatasetDraw, onBeforeDatasetsDraw, onBeforeDatasetsUpdate, onBeforeDatasetUpdate, onBeforeEvent, onBeforeInit, onBeforeLayout, onBeforeRender, onBeforeTooltipDraw, onResize, toString
public static final String ID
public static final HtmlLegendOptionsFactory FACTORY
public static HtmlLegend get()
public String getId()
Plugin
public void onConfigure(IsChart chart)
Plugin
onConfigure
in interface Plugin
onConfigure
in class AbstractPlugin
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
onBeforeUpdate
in class AbstractPlugin
chart
- the chart instance.false
to cancel the chart update.public boolean onBeforeDraw(IsChart chart, double easing)
Plugin
false
, the frame drawing is cancelled until
another 'render' is triggered.onBeforeDraw
in interface Plugin
onBeforeDraw
in class AbstractPlugin
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
onAfterDraw
in class AbstractPlugin
chart
- the chart instance.easing
- The current animation value, between 0.0 and 1.0.