Uses of Class
org.pepstock.charba.client.callbacks.ChartContext
-
Packages that use ChartContext Package Description org.pepstock.charba.client.annotation Contains all classes to activate theAnnotationPlugin.ID
plugin (AKAchartjs-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.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 theDataLabelsPlugin.ID
plugin (AKAchartjs-plugin-datalabels.js
) for CHART.js.org.pepstock.charba.client.impl.charts Contains METER and GAUGE charts implementations (based on controllers), 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 useLabelsPlugin.ID
plugin (AKAchartjs-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.zoom Contains all classes to activate theZoomPlugin.ID
plugin (AKAchartjs-plugin-zoom.js
) for CHART.js. -
-
Uses of ChartContext in org.pepstock.charba.client.annotation
Subclasses of ChartContext in org.pepstock.charba.client.annotation Modifier and Type Class Description class
AnnotationContext
The callback or handler context wrapper, created and passed byAnnotationPlugin.ID
which contains the link to the native chart. -
Uses of ChartContext in org.pepstock.charba.client.callbacks
Classes in org.pepstock.charba.client.callbacks with type parameters of type ChartContext Modifier and Type Interface Description interface
BorderDashCallback<C extends ChartContext>
Callback interface to setborderDash
property at runtime.interface
BorderDashOffsetCallback<C extends ChartContext>
Callback interface to setborderDashOffset
property at runtime.interface
BorderRadiusCallback<C extends ChartContext>
Callback interface to set whateverborderRadius
property at runtime.interface
CapStyleCallback<C extends ChartContext>
Callback interface to setborderCapStyle
property at runtime.interface
ColorCallback<C extends ChartContext>
Callback interface to set whatevercolor
property at runtime.interface
ColorsCallback<C extends ChartContext>
Callback interface to setcolor
property at runtime forLabels
.interface
DisplayCallback<C extends ChartContext>
Callback interface to setdisplay
property where it can be set byDisplay
or a boolean.interface
ElementAlignCallback<C extends ChartContext>
Callback interface to setalign
property at runtimeinterface
FontCallback<C extends ChartContext>
Callback interface to setfont
property at runtime.interface
FontsCallback<C extends ChartContext>
Callback interface to setfont
property at runtime, for multiple fonts.interface
FullSizeCallback<C extends ChartContext>
Callback interface to setfullSize
property at runtime.interface
JoinStyleCallback<C extends ChartContext>
Callback interface to setborderJoinStyle
property at runtime.interface
OffsetCallback<C extends ChartContext>
Callback interface to set whateveroffset
property at runtime.interface
PaddingCallback<C extends ChartContext>
Callback interface to set a padding element at runtime.interface
PointStyleCallback<C extends ChartContext>
Callback interface to setpointStyle
property at runtime.interface
PositionCallback<C extends ChartContext>
Callback interface to setposition
property at runtime.interface
RadiusCallback<C extends ChartContext>
Callback interface to set whateverradius
property at runtime.interface
RotationCallback<C extends ChartContext>
Callback interface to set whateverrotation
property at runtime.interface
Scriptable<T,C extends ChartContext>
Interface to map all callback of scriptable options available for CHART.JS.interface
SimpleDisplayCallback<C extends ChartContext>
Callback interface to setdisplay
property at runtime.interface
TextAlignCallback<C extends ChartContext>
Callback interface to settextAlign
property at runtimeinterface
TextCallback<C extends ChartContext>
Callback interface to settext
property at runtime.interface
WidthCallback<C extends ChartContext>
Callback interface to set whateverwidth
property at runtime.Subclasses of ChartContext in org.pepstock.charba.client.callbacks Modifier and Type Class Description class
AbstractDatasetContext
The option context is used to give contextual information when resolving options where the data set locator (data and data set index) must be used.class
DatasetContext
The option context is used to give contextual information when resolving options.class
ScaleContext
The SCALE option context is used to give contextual information when resolving options.
The context object contains the following properties:
index: index of the associated data scale: scale instance which contains the element to configure tick: tick item instance which contains data to be consumed configuring the element (only for ticks) label: label item to manage by callback (only for point label context)class
SegmentContext
The callback or handler context wrapper, created and passed bySegment
which contains the line charts references.class
TooltipContext
The option context is used to give contextual information when resolving options.Methods in org.pepstock.charba.client.callbacks with type parameters of type ChartContext Modifier and Type Method Description static <T,C extends ChartContext>
TScriptableUtil. getOptionValue(C context, Scriptable<T,C> callback)
Returns the value of the property as result of callback (the same type).static <T,C extends ChartContext>
TScriptableUtil. getOptionValue(C context, Scriptable<T,C> callback, T defaultValue)
Returns the value of the property as result of callback (the same type), passing a default value.static <C extends ChartContext>
ObjectScriptableUtil. getOptionValueAsColor(C context, Scriptable<?,C> 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 alsoPattern
orCanvasPatternItem
.static <C extends ChartContext>
ObjectScriptableUtil. getOptionValueAsColor(C context, Scriptable<?,C> 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 <C extends ChartContext>
FontItemScriptableUtil. getOptionValueAsFont(C context, Scriptable<FontItem,C> callback, IsDefaultFont defaultValue)
Returns the font item value as value of the property by invoking a callback which is typed to a font item.static <T extends Number,C extends ChartContext>
TScriptableUtil. getOptionValueAsNumber(C context, Scriptable<T,C> callback, T defaultValue)
Returns the value, asNumber
, of the property as result of callback (the same type), passing a default value.static <T extends Number,C extends ChartContext>
TScriptableUtil. getOptionValueAsNumber(C context, Scriptable<T,C> callback, T defaultValue, ScriptableResultChecker<T> checker)
Returns the value, asNumber
, of the property as result of callback (the same type), passing a default value and aScriptableResultChecker
to check the consistency of the result.static <C extends ChartContext>
PaddingItemScriptableUtil. getOptionValueAsPadding(C context, Scriptable<PaddingItem,C> callback, IsDefaultPadding defaultValue)
Returns the padding item value as value of the property by invoking a callback which is typed to a paddng item.static <T extends Key,C extends ChartContext>
TScriptableUtil. getOptionValueAsString(C context, Scriptable<T,C> callback)
Returns the enumeration value as value of the property by invoking a callback which is typed to a key.static <T extends Key,C extends ChartContext>
TScriptableUtil. getOptionValueAsString(C context, Scriptable<T,C> callback, T defaultValue)
Returns the enumeration value of the property by invoking a callback which is typed to a key, passing a default value.static <C extends ChartContext>
ObjectScriptableUtil. handleCallbackResultAsColor(C context, Object result, 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 <C extends ChartContext>
BarBorderRadiusBorderRadiusCallback. toObject(C context, BorderRadiusCallback<C> callback, int defaultValue)
Returns anBarBorderRadius
instance when the callback has been activated.Methods in org.pepstock.charba.client.callbacks with parameters of type ChartContext Modifier and Type Method Description static boolean
ScriptableUtil. isContextConsistent(ChartContext context)
Returnstrue
if context is consistent, otherwisefalse
.static IsChart
ScriptableUtil. retrieveChart(ChartContext context)
Returns the chart instance, contained in the context if context is consistent. -
Uses of ChartContext in org.pepstock.charba.client.configuration
Methods in org.pepstock.charba.client.configuration that return types with arguments of type ChartContext Modifier and Type Method Description PaddingCallback<ChartContext>
Layout. getPaddingCallback()
Returns the padding callback, if set, otherwisenull
.Method parameters in org.pepstock.charba.client.configuration with type arguments of type ChartContext Modifier and Type Method Description void
Layout. setPadding(PaddingCallback<ChartContext> paddingCallback)
Sets the padding callback. -
Uses of ChartContext in org.pepstock.charba.client.datalabels
Subclasses of ChartContext in org.pepstock.charba.client.datalabels Modifier and Type Class Description class
DataLabelsContext
The option context is used to give contextual information when resolving options forDataLabelsPlugin
. -
Uses of ChartContext in org.pepstock.charba.client.impl.charts
Subclasses of ChartContext in org.pepstock.charba.client.impl.charts Modifier and Type Class Description class
MeterContext
The callback context wrapper, created and passed byMeterOptions
which contains the link to the native chart. -
Uses of ChartContext in org.pepstock.charba.client.items
Methods in org.pepstock.charba.client.items that return ChartContext Modifier and Type Method Description ChartContext
ChartElementFactory. createContext(NativeObject nativeObject)
Returns the context instance from an element.ChartContext
ChartElement. getContext()
Returns the context of the element. -
Uses of ChartContext in org.pepstock.charba.client.labels
Subclasses of ChartContext in org.pepstock.charba.client.labels Modifier and Type Class Description class
LabelsContext
This object is wrapping the native java script object provided byLabelsPlugin.ID
plugin when the callback function is called. -
Uses of ChartContext in org.pepstock.charba.client.options
Classes in org.pepstock.charba.client.options with type parameters of type ChartContext Modifier and Type Class Description class
AbstractScriptableFont<T extends ChartContext>
Object can be provided with additional configuration by callbacks to define font options at runtime, and with the possibility to resetFontCallback
if theIsScriptableFontProvider
instance has been set with aFontCallback
.class
AbstractScriptablePadding<T extends ChartContext>
Object can be provided with additional configuration by callbacks to define padding options at runtime, and with the possibility to resetPaddingCallback
if theIsScriptablePaddingProvider
instance has been set with aPaddingCallback
.interface
IsScriptableFontProvider<T extends ChartContext>
Map an object which contains a font instance which can be set by callback,FontCallback
.interface
IsScriptablePaddingProvider<T extends ChartContext>
Map an object which contains a padding instance which can be set by callback,PaddingCallback
. -
Uses of ChartContext in org.pepstock.charba.client.zoom
Subclasses of ChartContext in org.pepstock.charba.client.zoom Modifier and Type Class Description class
ZoomContext
The callback or handler context, created and passed byZoomPlugin.ID
which contains the link to the native chart and the event.
-