Package | Description |
---|---|
org.pepstock.charba.client.callbacks |
All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.
|
org.pepstock.charba.client.datalabels.callbacks |
Contains the
DataLabelsPlugin.ID plugin callback interfaces to configure the plugin itself. |
Modifier and Type | Interface and Description |
---|---|
interface |
BackgroundColorCallback
Callback interface to set
backgroundColor , hoverBackgroundColor , pointBackgroundColor
or pointHoverBackgroundColor property at runtime, using the chart instance and the context. |
interface |
BorderAlignCallback
Callback interface to set
borderAlign property at runtime, using the chart instance and the context. |
interface |
BorderCapStyleCallback
Callback interface to set
borderCapStyle property at runtime, using the chart instance and the context. |
interface |
BorderColorCallback
Callback interface to set
borderColor , hoverBorderColor , pointBorderColor or
pointHoverBorderColor property at runtime, using the chart instance and the context. |
interface |
BorderDashCallback
Callback interface to set
borderDash property at runtime, using the chart instance and the context. |
interface |
BorderDashOffsetCallback
Callback interface to set
borderDashOffset property at runtime, using the chart instance and the context. |
interface |
BorderJoinStyleCallback
Callback interface to set
borderJoinStyle property at runtime, using the chart instance and the context. |
interface |
BorderSkippedCallback
Callback interface to set
borderSkipped property at runtime, using the chart instance and the context. |
interface |
BorderWidthCallback
Callback interface to set
borderWidth , hoverBorderWidth , pointBorderWidth or
pointHoverBorderWidth property at runtime, using the chart instance and the context. |
interface |
CubicInterpolationModeCallback
Callback interface to set
cubicInterpolationMode property at runtime, using the chart instance and the context. |
interface |
FillCallback
Callback interface to set
fill property at runtime, using the chart instance and the context.The result object can have one of following type: Fill
Boolean
Integer for AbsoluteDatasetIndexFill
String for RelativeDatasetIndexFill
|
interface |
PointStyleCallback
Callback interface to set
pointStyle property at runtime, using the chart instance and the context. |
interface |
RadiusCallback
Callback interface to set
radius or pointRadius (hit and hover) property at runtime, using the
chart instance and the context. |
interface |
RotationCallback
Callback interface to set
rotation or pointRotation property at runtime, using the chart instance
and the context. |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ScriptableUtils.getOptionValue(ScriptableContext context,
Scriptable<T> callback)
Returns the value of the property as result of callback (the same type).
|
static <T> T |
ScriptableUtils.getOptionValue(ScriptableContext context,
Scriptable<T> callback,
T defaultValue)
Returns the value of the property as result of callback (the same type), passing a default value.
|
static Object |
ScriptableUtils.getOptionValueAsColor(ScriptableContext context,
Scriptable<?> callback,
String defaultValue)
Returns a color value of property by a callback, checking all different types of object which can be used as value of the
property in color ones.
By defaults, is able to manage also Pattern or CanvasPattern . |
static Object |
ScriptableUtils.getOptionValueAsColor(ScriptableContext context,
Scriptable<?> callback,
String defaultValue,
boolean hasPattern)
Returns a color value of property by a callback, checking all different types of object which can be used as value of the
property in color ones.
|
static <T extends Key> |
ScriptableUtils.getOptionValueAsString(ScriptableContext context,
Scriptable<T> callback)
Returns the enumeration value as value of the property by invoking a callback which is typed to a key.
|
static <T extends Key> |
ScriptableUtils.getOptionValueAsString(ScriptableContext context,
Scriptable<T> callback,
T defaultValue)
Returns the enumeration value of the property by invoking a callback which is typed to a key, passing a default value.
|
Modifier and Type | Interface and Description |
---|---|
interface |
AlignCallback
Callback interface of
DataLabelsPlugin.ID plugin to set align property at runtime, using the chart instance and the
plugin context. |
interface |
AnchorCallback
Callback interface of
DataLabelsPlugin.ID plugin to set anchor property at runtime, using the chart instance and the
plugin context. |
interface |
ClampCallback
Callback interface of
DataLabelsPlugin.ID plugin to set clamp property at runtime, using the chart instance and the
plugin context. |
interface |
ClipCallback
Callback interface of
DataLabelsPlugin.ID plugin to set clip property at runtime, using the chart instance and the plugin
context. |
interface |
ColorCallback
Callback interface of
DataLabelsPlugin.ID plugin to set color property at runtime, using the chart instance and the
plugin context.PAY ATTENTION that with the current release of DataLabelsPlugin.ID plugin, the GRADIENT coordinates are relative the the label
coordinates (local), not relative to the canvas coordinates (global), therefore NOT USE GRADIENT Charba object, waiting for
DataLabelsPlugin.ID enhancement. |
interface |
DisplayCallback
Callback interface of
DataLabelsPlugin.ID plugin to set display property at runtime, using the chart instance and the
plugin context. |
interface |
FontCallback
Callback interface of
DataLabelsPlugin.ID plugin to set a font element at runtime, using the chart instance and the plugin context. |
interface |
OffsetCallback
Callback interface of
DataLabelsPlugin.ID plugin to set offset property at runtime, using the chart instance and the
plugin context. |
interface |
OpacityCallback
Callback interface of
DataLabelsPlugin.ID plugin to set opacity property at runtime, using the chart instance and the
plugin context. |
interface |
PaddingCallback
Callback interface of
DataLabelsPlugin.ID plugin to set a padding element at runtime, using the chart instance and the plugin context. |
interface |
TextAlignCallback
Callback interface of
DataLabelsPlugin.ID plugin to set textAlign property at runtime, using the chart instance and the
plugin context. |
interface |
TextShadowBlurCallback
Callback interface of
DataLabelsPlugin.ID plugin to set textShadowBlur property at runtime, using the chart instance and
the plugin context. |
interface |
TextShadowColorCallback
Callback interface of
DataLabelsPlugin.ID plugin to set textShadowColor property at runtime, using the chart instance and
the plugin context.PAY ATTENTION that with the current release of DataLabelsPlugin.ID plugin, the GRADIENT coordinates are relative the the label
coordinates (local), not relative to the canvas coordinates (global), therefore NOT USE GRADIENT Charba object, waiting for
DataLabelsPlugin.ID enhancement. |
interface |
TextStrokeColorCallback
Callback interface of
DataLabelsPlugin.ID plugin to set textStrokeColor property at runtime, using the chart instance and
the plugin context.PAY ATTENTION that with the current release of DataLabelsPlugin.ID plugin, the GRADIENT coordinates are relative the the label
coordinates (local), not relative to the canvas coordinates (global), therefore NOT USE GRADIENT Charba object, waiting for
DataLabelsPlugin.ID enhancement. |
interface |
TextStrokeWidthCallback
Callback interface of
DataLabelsPlugin.ID plugin to set textStrokeWidth property at runtime, using the chart instance and
the plugin context. |