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, toStringpublic static final String ID
public static final HtmlLegendOptionsFactory FACTORY
public static HtmlLegend get()
public String getId()
Pluginpublic void onConfigure(IsChart chart)
PluginonConfigure in interface PluginonConfigure in class AbstractPluginchart - the chart instance.public 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 boolean onBeforeDraw(IsChart chart, double easing)
Pluginfalse, the frame drawing is cancelled until another 'render' is triggered.onBeforeDraw in interface PluginonBeforeDraw in class AbstractPluginchart - 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)
PluginonAfterDraw in interface PluginonAfterDraw in class AbstractPluginchart - the chart instance.easing - The current animation value, between 0.0 and 1.0.