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.IDplugin (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.IDplugin (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.labels Contains all classes to useLabelsPlugin.IDplugin (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.IDplugin (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 classAnnotationContextThe callback or handler context wrapper, created and passed byAnnotationPlugin.IDwhich 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 interfaceBorderDashCallback<C extends ChartContext>Callback interface to setborderDashproperty at runtime.interfaceBorderDashOffsetCallback<C extends ChartContext>Callback interface to setborderDashOffsetproperty at runtime.interfaceBorderRadiusCallback<C extends ChartContext>Callback interface to set whateverborderRadiusproperty at runtime.interfaceCapStyleCallback<C extends ChartContext>Callback interface to setborderCapStyleproperty at runtime.interfaceColorCallback<C extends ChartContext>Callback interface to set whatevercolorproperty at runtime.interfaceDisplayCallback<C extends ChartContext>Callback interface to setdisplayproperty where it can be set byDisplayor a boolean.interfaceElementAlignCallback<C extends ChartContext>Callback interface to setalignproperty at runtimeinterfaceFontCallback<C extends ChartContext>Callback interface to setfontproperty at runtime.interfaceFullSizeCallback<C extends ChartContext>Callback interface to setfullSizeproperty at runtime.interfaceJoinStyleCallback<C extends ChartContext>Callback interface to setborderJoinStyleproperty at runtime.interfaceOffsetCallback<C extends ChartContext>Callback interface to set whateveroffsetproperty at runtime.interfacePaddingCallback<C extends ChartContext>Callback interface to set a padding element at runtime.interfacePointStyleCallback<C extends ChartContext>Callback interface to setpointStyleproperty at runtime.interfacePositionCallback<C extends ChartContext>Callback interface to setpositionproperty at runtime.interfaceRadiusCallback<C extends ChartContext>Callback interface to set whateverradiusproperty at runtime.interfaceRotationCallback<C extends ChartContext>Callback interface to set whateverrotationproperty at runtime.interfaceScriptable<T,C extends ChartContext>Interface to map all callback of scriptable options available for CHART.JS.interfaceSimpleDisplayCallback<C extends ChartContext>Callback interface to setdisplayproperty at runtime.interfaceTextAlignCallback<C extends ChartContext>Callback interface to settextAlignproperty at runtimeinterfaceTextCallback<C extends ChartContext>Callback interface to settextproperty at runtime.interfaceWidthCallback<C extends ChartContext>Callback interface to set whateverwidthproperty at runtime.Subclasses of ChartContext in org.pepstock.charba.client.callbacks Modifier and Type Class Description classAbstractDatasetContextThe option context is used to give contextual information when resolving options where the data set locator (data and data set index) must be used.classDatasetContextThe option context is used to give contextual information when resolving options.classScaleContextThe 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)classSegmentContextThe callback or handler context wrapper, created and passed bySegmentwhich contains the line charts references.classTooltipContextThe 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 alsoPatternorCanvasPatternItem.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 aScriptableResultCheckerto 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 anBarBorderRadiusinstance when the callback has been activated.Methods in org.pepstock.charba.client.callbacks with parameters of type ChartContext Modifier and Type Method Description static booleanScriptableUtil. isContextConsistent(ChartContext context)Returnstrueif context is consistent, otherwisefalse.static IsChartScriptableUtil. 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 voidLayout. 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 classDataLabelsContextThe 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 classMeterContextThe callback context wrapper, created and passed byMeterOptionswhich contains the link to the native chart. -
Uses of ChartContext in org.pepstock.charba.client.labels
Subclasses of ChartContext in org.pepstock.charba.client.labels Modifier and Type Class Description classLabelsContextThis object is wrapping the native java script object provided byLabelsPlugin.IDplugin 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 classAbstractScriptableFont<T extends ChartContext>Object can be provided with additional configuration by callbacks to define font options at runtime, and with the possibility to resetFontCallbackif theIsScriptableFontProviderinstance has been set with aFontCallback.classAbstractScriptablePadding<T extends ChartContext>Object can be provided with additional configuration by callbacks to define padding options at runtime, and with the possibility to resetPaddingCallbackif theIsScriptablePaddingProviderinstance has been set with aPaddingCallback.interfaceIsScriptableFontProvider<T extends ChartContext>Map an object which contains a font instance which can be set by callback,FontCallback.interfaceIsScriptablePaddingProvider<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 classZoomContextThe callback or handler context, created and passed byZoomPlugin.IDwhich contains the link to the native chart and the event.
-