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. |
org.pepstock.charba.client.datalabels.events |
Contains the
DataLabelsPlugin.ID plugin event handlers interfaces to configure the plugin itself. |
org.pepstock.charba.client.impl.callbacks |
Contains some callbacks implementations, available out-of-the box.
|
Modifier and Type | Method and Description |
---|---|
double |
ScriptableFunctions.ProxyDoubleCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a double property.
|
boolean |
ScriptableFunctions.ProxyBooleanCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a boolean property.
|
int |
ScriptableFunctions.ProxyIntegerCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a integer property.
|
String |
ScriptableFunctions.ProxyStringCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a string property.
|
Object |
ScriptableFunctions.ProxyObjectCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a object property.
|
NativeObject |
ScriptableFunctions.ProxyNativeObjectCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a native object property.
|
Array |
ScriptableFunctions.ProxyArrayCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide an array property.
|
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.
|
T |
Scriptable.invoke(IsChart chart,
ScriptableContext context)
Returns the value of property at runtime, using the chart instance and the context.
|
static IsChart |
ScriptableUtils.retrieveChart(ScriptableContext context,
Object callback)
Returns the chart instance if callback and chart itself are consistent.
|
Modifier and Type | Method and Description |
---|---|
String |
FormatterCallback.invoke(IsChart chart,
double value,
ScriptableContext context)
Returns the
formatter property at runtime, using the chart instance and the plugin context. |
Modifier and Type | Method and Description |
---|---|
boolean |
ClickEventHandler.onClick(IsChart chart,
ScriptableContext context)
Invoked to manage CLICK events on labels.
|
boolean |
AbstractEventHandler.onClick(IsChart chart,
ScriptableContext context) |
boolean |
EnterEventHandler.onEnter(IsChart chart,
ScriptableContext context)
Invoked to manage ENTER events on labels.
|
boolean |
AbstractEventHandler.onEnter(IsChart chart,
ScriptableContext context) |
boolean |
LeaveEventHandler.onLeave(IsChart chart,
ScriptableContext context)
Invoked to manage LEAVE events on labels.
|
boolean |
AbstractEventHandler.onLeave(IsChart chart,
ScriptableContext context) |
Modifier and Type | Method and Description |
---|---|
static double |
Percentage.compute(IsChart chart,
double value,
ScriptableContext context)
Computes the percentage of the value based on the data of datasets.
|
static double |
Percentage.compute(IsChart chart,
double value,
ScriptableContext context,
boolean stacked)
Computes the percentage of the value based on the data of datasets.
|
String |
PercentageCallback.invoke(IsChart chart,
double value,
ScriptableContext context) |
boolean |
DataLabelsSelectionHandler.onClick(IsChart chart,
ScriptableContext context) |
boolean |
DataLabelsPointerHandler.onEnter(IsChart chart,
ScriptableContext context) |
boolean |
DataLabelsPointerHandler.onLeave(IsChart chart,
ScriptableContext context) |