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.configuration |
Contains all elements to configure a chart instance (know as chart options at instance level).
|
org.pepstock.charba.client.defaults |
Contains all interfaces need to provide defaults values of the chart options.
|
org.pepstock.charba.client.defaults.chart |
Contains the default values of chart options based on type of chart instance.
|
org.pepstock.charba.client.defaults.globals |
Contains the default values of chart options for all chart types (CHART.JS options defaults).
|
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.gwt.widgets |
Contains all charts classes wrapped as GWT widget in order to enable to use inside to GWT UIBinder.
|
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.options |
Contains all elements to configure charts at global level (know as chart global options).
|
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 | Field and Description |
---|---|
static TransitionKey |
UpdateConfiguration.UPDATE
Default animation mode key, used for chart updating.
|
Modifier and Type | Method and Description |
---|---|
default void |
Controller.onAfterUpdate(ControllerContext context,
IsChart chart,
TransitionKey mode)
Called after it updates the elements in response to new data.
|
default void |
Controller.onBeforeUpdate(ControllerContext context,
IsChart chart,
TransitionKey mode)
Called before it updates the elements in response to new data.
|
void |
AbstractChart.reconfigure(TransitionKey mode)
Triggers an update of the chart.
This can be safely called after updating the data object. This will update the options, mutating the options property in place. A animation mode key can be provided for the update process using a specific animation configuration. This is useful when update is manually called inside an event handler and some different animation is desired. |
void |
IsChart.reconfigure(TransitionKey mode)
Triggers an update of the chart.
This can be safely called after updating the data object. This will update the options, mutating the options property in place. A animation mode key can be provided for the update process using a specific animation configuration. This is useful when update is manually called inside an event handler and some different animation is desired. |
void |
AbstractChart.update(TransitionKey mode)
Triggers an update of the chart.
This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart. A animation mode key can be provided for the update process using a specific animation configuration. This is useful when update is manually called inside an event handler and some different animation is desired. |
void |
IsChart.update(TransitionKey mode)
Triggers an update of the chart.
This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart. A config object can be provided with additional configuration for the update process. This is useful when update is manually called inside an event handler and some different animation is desired. |
Modifier and Type | Method and Description |
---|---|
TransitionKey |
AbstractDatasetContext.getMode()
Returns the update mode.
|
Modifier and Type | Method and Description |
---|---|
AnimationTransition |
Transitions.create(TransitionKey transition)
Creates an animation transition instance and stores in the the animation options.
|
AnimationTransition |
Transitions.get(TransitionKey transition)
Returns an animation transition instance if stored in the the animation options.
|
boolean |
Transitions.has(TransitionKey transition)
Returns
true if an animation transition instance is stored in the the animation options. |
void |
Transitions.remove(TransitionKey transition)
Removes an animation transition previously added.
|
void |
Transitions.set(TransitionKey transition,
AnimationTransition animationTransition)
Sets an animation transition instance to store in the animation options.
|
Modifier and Type | Method and Description |
---|---|
IsDefaultAnimationTransition |
IsDefaultTransitions.get(TransitionKey transition)
Returns an animation transition instance if stored in the the animation options.
|
boolean |
IsDefaultTransitions.has(TransitionKey transition)
Returns
true if an animation transition instance is stored in the the animation options. |
Modifier and Type | Method and Description |
---|---|
IsDefaultAnimationTransition |
DefaultChartTransitions.get(TransitionKey transition) |
boolean |
DefaultChartTransitions.has(TransitionKey transition) |
Modifier and Type | Method and Description |
---|---|
IsDefaultAnimationTransition |
DefaultTransitions.get(TransitionKey transition) |
boolean |
DefaultTransitions.has(TransitionKey transition) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTransitionKey
Cores animation update modes (transition) provided out of the box by CHART.JS.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
DefaultTransitionKey.is(TransitionKey mode)
Returns
true if the argument is equals to a default animation mode. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractChartWidget.reconfigure(TransitionKey mode) |
void |
AbstractChartWidget.update(TransitionKey mode) |
Modifier and Type | Method and Description |
---|---|
TransitionKey |
PluginUpdateArgument.getMode()
Returns the update mode.
|
Modifier and Type | Class and Description |
---|---|
class |
StandardAnimationTransition
This is a standard implementation of an animation update mode (transition).
|
Modifier and Type | Method and Description |
---|---|
static TransitionKey |
TransitionKey.checkAndGetIfValid(TransitionKey transition)
Checks if mode passed as argument is not
null .If not, throw a IllegalArgumentException , otherwise it returns the argument. |
static TransitionKey |
TransitionKey.create(String transition)
Returns a animation update mode (transition) instance by its string value.
|
Modifier and Type | Method and Description |
---|---|
static TransitionKey |
TransitionKey.checkAndGetIfValid(TransitionKey transition)
Checks if mode passed as argument is not
null .If not, throw a IllegalArgumentException , otherwise it returns the argument. |
static void |
TransitionKey.checkIfValid(TransitionKey transition)
|
AnimationTransition |
Transitions.create(TransitionKey transition)
Creates an animation transition instance and stores in the the animation options.
|
AnimationTransition |
IsTransitions.create(TransitionKey transition)
Creates an animation transition instance and stores in the animation options.
|
AnimationTransition |
Transitions.get(TransitionKey transition)
Returns an animation transition instance if stored in the the animation options.
|
AnimationTransition |
IsTransitions.get(TransitionKey transition)
Returns an animation transition instance if stored in the animation options.
|
boolean |
Transitions.has(TransitionKey transition)
Returns
true if an animation transition instance is stored in the the animation options. |
static boolean |
TransitionKey.isValid(TransitionKey transition)
Returns
true if type passed as argument is not null . |
void |
Transitions.remove(TransitionKey transition)
Removes an animation transition previously added.
|
void |
IsTransitions.remove(TransitionKey transition)
Removes an animation transition previously added.
|
void |
Transitions.set(TransitionKey transition,
AnimationTransition animationTransition)
Sets an animation transition instance to store in the animation options.
|
void |
IsTransitions.set(TransitionKey transition,
AnimationTransition animationTransition)
Sets an animation transition instance to store in the animation options.
|
Modifier and Type | Field and Description |
---|---|
static TransitionKey |
ZoomPlugin.ZOOM_TRANSITION_MODE
Custom transition mode to update the chart by API, "zoom".
|
Modifier and Type | Method and Description |
---|---|
static void |
ZoomPlugin.pan(IsChart chart,
Amount amount,
TransitionKey transition)
Pans the chart on demand, programmatically.
|
static void |
ZoomPlugin.pan(IsChart chart,
double amount,
TransitionKey transition)
Pans the chart on demand, programmatically.
|
static void |
ZoomPlugin.reset(IsChart chart,
TransitionKey transition)
Reset the zoom of chart when
ZoomPlugin is activated. |
static void |
ZoomPlugin.zoom(IsChart chart,
Amount amount,
TransitionKey transition)
Zooms the chart on demand, programmatically.
|
static void |
ZoomPlugin.zoom(IsChart chart,
double amount,
TransitionKey transition)
Zooms the chart on demand, programmatically.
|
static void |
ZoomPlugin.zoomScale(IsChart chart,
ScaleId scaleId,
ScaleRange range,
TransitionKey transition)
Zooms the chart scale on demand, programmatically.
|