public final class ColorSchemes extends AbstractPlugin
Modifier and Type | Field and Description |
---|---|
static ColorSchemesOptionsFactory |
FACTORY
Data labels options factory
|
static String |
ID
Plugin ID "charbacolorschemes".
|
Modifier and Type | Method and Description |
---|---|
static ColorSchemes |
get()
Returns the singleton instance of plugin.
|
String |
getId()
Plugins must define a unique id in order to be configurable.
Returns the plugin id. |
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, onAfterDraw, onAfterEvent, onAfterInit, onAfterLayout, onAfterRender, onAfterTooltipDraw, onAfterUpdate, onBeforeDatasetDraw, onBeforeDatasetsDraw, onBeforeDatasetsUpdate, onBeforeDatasetUpdate, onBeforeDraw, onBeforeEvent, onBeforeInit, onBeforeLayout, onBeforeRender, onBeforeTooltipDraw, onResize, toString
public static final String ID
public static final ColorSchemesOptionsFactory FACTORY
public static ColorSchemes 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.