Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.adapters |
Contains all classes to interact with date adapters implemented by CHART.JS to be abstract from date time java script library to use.
|
org.pepstock.charba.client.annotation |
Contains all classes to activate the
AnnotationPlugin.ID plugin (AKA chartjs-plugin-annotation.js ) for CHART.js. |
org.pepstock.charba.client.callbacks |
All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.
|
org.pepstock.charba.client.colors |
Contains the enumerations of HTML and GWT Material colors, to consume out-of-the-box, and utilities to create and manage own colors and classes to define gradients of patterns
for charts.
|
org.pepstock.charba.client.commons |
Core classes to manage the inter-operations with java script code.
|
org.pepstock.charba.client.configuration |
Contains all elements to configure a chart instance (know as chart options at instance level).
|
org.pepstock.charba.client.datalabels |
Contains all classes to activate the
DataLabelsPlugin.ID plugin (AKA chartjs-plugin-datalabels.js ) for CHART.js. |
org.pepstock.charba.client.enums |
Contains all enumerations of some chart options where only a specific set of values can be set.
|
org.pepstock.charba.client.impl.plugins |
Contains some plugins implementations, available out-of-the box.
|
org.pepstock.charba.client.items |
Contains all elements generated by CHART.JS, which are mapping java script objects, to use at runtime in plugins, events or controllers.
|
org.pepstock.charba.client.labels |
Contains all classes to use
LabelsPlugin.ID plugin (AKA chartjs-plugin-labels.js ) available for CHART.JS |
org.pepstock.charba.client.options |
Contains all elements to configure charts at global level (know as chart global options).
|
org.pepstock.charba.client.plugins |
Contains all classes to manage the plugin implementations.
|
org.pepstock.charba.client.utils |
Contains some utilities to use in Charba, like HTML annotation builder, and other java script utilities useful for debugging.
|
org.pepstock.charba.client.zoom |
Contains all classes to activate the
ZoomPlugin.ID plugin (AKA chartjs-plugin-zoom.js ) for CHART.js. |
Modifier and Type | Method and Description |
---|---|
NativeObject |
Helpers.clone(NativeObject source)
Returns a deep copy of source without keeping references on objects and arrays.
|
NativeObject |
Helpers.mergeIf(NativeObject target,
NativeObject source)
Recursively deep copies source properties into target only if not defined in target.
IMPORTANT: target is not cloned and will be updated with source properties. |
Modifier and Type | Method and Description |
---|---|
NativeObject |
Helpers.clone(NativeObject source)
Returns a deep copy of source without keeping references on objects and arrays.
|
NativeObject |
Helpers.mergeIf(NativeObject target,
NativeObject source)
Recursively deep copies source properties into target only if not defined in target.
IMPORTANT: target is not cloned and will be updated with source properties. |
void |
Configuration.setData(NativeObject data)
Sets the data of chart by the
data property into native object. |
void |
Configuration.setOptions(NativeObject options)
Sets the options of chart by the
options property into native object. |
Constructor and Description |
---|
Chart(Context2dItem context,
NativeObject configuration)
Builds CHART object at CHART.JS level.
This constructor MUST be empty. |
Modifier and Type | Method and Description |
---|---|
LuxonOptions |
LuxonOptionsFactory.create(NativeObject nativeObject) |
Constructor and Description |
---|
DateAdapterFormats(NativeObject nativeObject)
Creates the object with the native object to map java script properties.
|
Modifier and Type | Method and Description |
---|---|
AnnotationOptions |
AnnotationOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
Modifier and Type | Method and Description |
---|---|
NativeObject |
ScriptableFunctions.ProxyNativeObjectCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a native object property.
|
Modifier and Type | Method and Description |
---|---|
double |
ScriptableFunctions.ProxyDoubleCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a double property.
|
boolean |
ScriptableFunctions.ProxyBooleanCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a boolean property.
|
int |
ScriptableFunctions.ProxyIntegerCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a integer property.
|
String |
ScriptableFunctions.ProxyStringCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a string property.
|
Object |
ScriptableFunctions.ProxyObjectCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a object property.
|
NativeObject |
ScriptableFunctions.ProxyNativeObjectCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide a native object property.
|
Array |
ScriptableFunctions.ProxyArrayCallback.call(CallbackFunctionContext contextFunction,
NativeObject context)
Method of function to be called to provide an array property.
|
Constructor and Description |
---|
ScriptableContext(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
Modifier and Type | Method and Description |
---|---|
Pattern |
Pattern.PatternFactory.create(NativeObject nativeObject) |
Gradient |
Gradient.GradientFactory.create(NativeObject nativeObject) |
Modifier and Type | Method and Description |
---|---|
NativeObject |
ArrayObjectList.get(int index)
Returns the element at the specified position in this list.
|
NativeObject |
ArrayObject.get(int index)
Gets the value at a given index.
|
protected NativeObject |
NativeObjectContainer.getNativeObject()
Returns the native object instance.
|
protected NativeObject |
NativeObjectContainer.getValue(Key key)
Returns a value (JavaScript Object) into embedded JavaScript object at specific property.
|
NativeObject |
Merger.merge(NativeObjectContainer target,
NativeObjectContainer source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
Merger.merge(NativeObjectContainer target,
NativeObject source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
Merger.merge(NativeObject target,
NativeObjectContainer source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
Merger.merge(NativeObject target,
NativeObject source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
ArrayObjectList.remove(int index)
Removes the element at the specified position in this list.
Shifts any subsequent elements to the left (subtracts one from their indices). |
NativeObject |
ArrayObjectList.set(int index,
NativeObject element)
Replaces the element at the specified position in this list with the specified element.
|
Modifier and Type | Method and Description |
---|---|
static List<NativeObject> |
ArrayListHelper.unmodifiableList(ArrayObject values)
Creates an unmodifiable array list of generic java script objects by a java script array.
|
Modifier and Type | Method and Description |
---|---|
void |
ArrayObjectList.add(int index,
NativeObject element)
Inserts the specified element at the specified position in this list.
Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
boolean |
ArrayObjectList.add(NativeObject element)
Appends the specified element to the end of this list
|
void |
ArrayObjectList.addAll(NativeObject... values)
Loads an array of elements into the list
|
T |
NativeObjectContainerFactory.create(NativeObject nativeObject)
Creates a native object container instance by a native object.
|
static int |
Id.get(Key key,
NativeObject nativeObject)
Returns the property value from java script object, when the ID is stored as integer
|
static String |
Id.get(NativeObject nativeObject)
Returns the property value from java script object.
|
NativeObject |
Merger.merge(NativeObjectContainer target,
NativeObject source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
Merger.merge(NativeObject target,
NativeObjectContainer source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
Merger.merge(NativeObject target,
NativeObject source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the property argument) into target only if
not defined in target.target is not cloned and will be updated with source properties.The property is |
int |
JsHelper.propertyAsInt(NativeObject object,
String key)
Returns a property of java script object as integer.
|
NativeObject |
ArrayObjectList.set(int index,
NativeObject element)
Replaces the element at the specified position in this list with the specified element.
|
protected void |
NativeObjectContainer.setValue(Key key,
NativeObject value)
Sets a value (JavaScript Object) into embedded JavaScript object at specific property.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ArrayObjectList.addAll(Collection<? extends NativeObject> collection)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator
|
void |
Merger.load(IsChart chart,
NativeObjectContainer options,
Envelop<NativeObject> envelop)
Merges chart default options (by chart.defaults[type]), default scale options (by chart.defaults.scale) and global options (by chart.defaults.global) and chart options.
The chain of priority is: chart options chart default options (by chart.defaults[type]) default scale options (by chart.defaults.scale) global options (by chart.defaults.global) |
void |
Merger.load(Type type,
Envelop<NativeObject> envelop)
Merges chart default options (by chart.defaults[type]), default scale options (by chart.defaults.scale) and global options (by chart.defaults.global).
The chain of priority is: chart default options (by chart.defaults[type]) default scale options (by chart.defaults.scale) global options (by chart.defaults.global) |
Constructor and Description |
---|
NativeObjectContainer(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationOptions.loadOptions(Envelop<NativeObject> envelop)
Merges chart default options (by chart.defaults[type]), default scale options (by chart.defaults.scale) and global options (by chart.defaults.global) and chart options.
The chain of priority is: chart options chart default options (by chart.defaults[type]) default scale options (by chart.defaults.scale) global options (by chart.defaults.global) |
Modifier and Type | Method and Description |
---|---|
DataLabelsOptions |
DataLabelsOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
Constructor and Description |
---|
Filler(NativeObject nativeObject,
IsFill defaultValue)
Creates a filler with the native object where FILL property must be managed and the default value to use when the property does not exist.
|
Modifier and Type | Method and Description |
---|---|
HtmlLegendOptions |
HtmlLegendOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
DatasetsItemsSelectorOptions |
DatasetsItemsSelectorOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
ColorSchemesOptions |
ColorSchemesOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
ChartPointerOptions |
ChartPointerOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
ChartBackgroundColorOptions |
ChartBackgroundColorOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
Modifier and Type | Method and Description |
---|---|
NativeObject |
TooltipLabelColor.getObject()
Wraps the protected method to get the java script object in order to consume it.
|
Modifier and Type | Method and Description |
---|---|
TooltipItem |
TooltipItem.TooltipItemFactory.create(NativeObject nativeObject) |
TimeTickItem |
TimeTickItem.TimeTickItemFactory.create(NativeObject nativeObject) |
LegendLabelItem |
LegendLabelItem.LegendLabelItemFactory.create(NativeObject nativeObject) |
LegendItem |
LegendItem.LegendItemFactory.create(NativeObject nativeObject) |
DatasetItem |
DatasetItem.DatasetItemFactory.create(NativeObject nativeObject) |
Constructor and Description |
---|
AnimationObject(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
AxisItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
ChartAreaNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
DatasetItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
DatasetMetaItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
DatasetPluginItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
EventPluginItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
LegendNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
OptionsNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
ScaleItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
ScalesNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
SizeItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
TitleNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
TooltipBodyItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
TooltipItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
TooltipModel(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
TooltipNode(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
TooltipPluginItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
LabelsOptions |
LabelsOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |
Constructor and Description |
---|
Fonter(NativeObject nativeObject,
org.pepstock.charba.client.options.AbstractModel<?,?> model,
IsDefaultFontItem defaultValues)
Creates a fonter with the native object where FONTs properties must be managed and the default value to use when the property does not exist.
|
Options(IsDefaultOptions defaultValues,
NativeObject nativeObject)
Creates the object only with default provider and native object.
|
Scale(IsDefaultScale defaultValues,
NativeObject nativeObject)
Creates the object only with default provider and native object.
|
ScaledOptions(IsDefaultScaledOptions defaultValues,
NativeObject nativeObject)
Creates the object only with default provider and native object.
|
Constructor and Description |
---|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues,
Envelop<NativeObject> envelop)
Creates an options with default provider.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
AbstractPluginOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues)
Creates a plugin options by a native object which is containing the options values and its defaults.
|
protected AbstractPluginCachedOptions |
AbstractPluginCachedOptionsFactory.getOptions(NativeObject nativeObject)
Returns the cached plugin options instance if there is, otherwise returns
null . |
Constructor and Description |
---|
AbstractPluginOptions(String pluginId,
NativeObject nativeObject)
Creates new plugin options with plugin ID, using a native object instance.
|
Modifier and Type | Method and Description |
---|---|
static String |
JSON.stringifyNativeObject(NativeObject obj,
int spaces)
Converts a JavaScript object or value to a JSON string, using a specific replacer to avoid to print internal keys of CHART.js
|
Modifier and Type | Method and Description |
---|---|
ZoomOptions |
ZoomOptionsFactory.create(NativeObject nativeObject,
IsDefaultPlugins defaultValues) |