Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
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.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.
|
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. |
Modifier and Type | Method and Description |
---|---|
NativeObject |
ScriptableFunctions.ProxyNativeObjectCallback.call(Object contextFunction,
ScriptableContext context)
Method of function to be called to provide a native object property.
|
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.
|
NativeObject |
Merger.get(Type type)
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) |
protected NativeObject |
NativeObjectContainer.getNativeObject()
Returns the native object instance.
|
protected NativeObject |
NativeExtendedObject.getNativeOptions()
Returns the
options property by native object. |
NativeObject |
NativeObjectDescriptor.getValue()
Gets the value associated with the property.
|
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 |
ChartNativeEvent |
JsHelper.nativeEvent(NativeObject event,
String key)
Returns a chart native event from CHART.JS event.
|
NativeObject |
ArrayObjectList.set(int index,
NativeObject element)
Replaces the element at the specified position in this list with the specified element.
|
protected void |
NativeExtendedObject.setNativeOptions(NativeObject options)
Sets the
options property into native object. |
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
|
Constructor and Description |
---|
NativeObjectContainer(NativeObject nativeObject)
Creates the object with native object instance to be wrapped.
|
Modifier and Type | Method and Description |
---|---|
DataLabelsOptions |
DataLabelsOptionsFactory.create(NativeObject nativeObject) |
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 |
---|---|
NativeObject |
DatasetsItemsSelectorOptions.getObject()
Returns the java script object of this options.
|
Modifier and Type | Method and Description |
---|---|
DatasetsItemsSelectorOptions |
DatasetsItemsSelectorOptionsFactory.create(NativeObject nativeObject) |
ColorSchemesOptions |
ColorSchemesOptionsFactory.create(NativeObject nativeObject) |
ChartPointerOptions |
ChartPointerOptionsFactory.create(NativeObject nativeObject) |
ChartBackgroundColorOptions |
ChartBackgroundColorOptionsFactory.create(NativeObject nativeObject) |
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) |
DatasetItem |
DatasetItem.DatasetItemFactory.create(NativeObject nativeObject) |
Constructor and Description |
---|
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.
|
LegendItem(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) |
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
|