Uses of Interface
org.pepstock.charba.client.callbacks.Scriptable
-
Packages that use Scriptable Package Description org.pepstock.charba.client.annotation.callbacks Contains theAnnotationPlugin.IDplugin callback interfaces to catch events.org.pepstock.charba.client.callbacks All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.org.pepstock.charba.client.data Contains all elements to configure the datasets of a chart instance (know as chart data at instance level).org.pepstock.charba.client.datalabels.callbacks Contains theDataLabelsPlugin.IDplugin callback interfaces to configure the plugin itself.org.pepstock.charba.client.geo.callbacks Contains all callbacks to configure the GEO controllers.org.pepstock.charba.client.labels.callbacks Contains theLabelsPlugin.IDplugin callback interfaces to configure the plugin itself.org.pepstock.charba.client.matrix.callbacks Contains all callbacks to configure the MATRIX controllers.org.pepstock.charba.client.sankey.callbacks Contains all callbacks to configure the SANKEY controllers.org.pepstock.charba.client.treemap.callbacks Contains theTreeMapChartcontroller callback interfaces to configure the chart itself.org.pepstock.charba.client.zoom.callbacks Contains theZoomPlugin.IDplugin callback interfaces to configure the plugin itself and to catch events. -
-
Uses of Scriptable in org.pepstock.charba.client.annotation.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.annotation.callbacks Modifier and Type Interface Description interfaceAdjustScaleRangeCallbackCallback interface ofAnnotationPlugin.IDplugin to setadjustScaleRangeproperty at runtime, toAbstractAnnotation.interfaceAdjustSizeCallbackCallback interface ofAnnotationPlugin.IDplugin to setxAdjustandyAdjustproperty at runtime, toAbstractAnnotationandLineLabel.interfaceContentCallbackCallback interface ofAnnotationPlugin.IDplugin to setcontentproperty at runtime to forLineLabel.interfaceDrawTimeCallbackCallback interface ofAnnotationPlugin.IDplugin to setdrawTimeproperty at runtime, in all annotations.interfaceImageSizeCallbackCallback interface ofAnnotationPlugin.IDplugin to setwidthandheightproperties at runtime, toLineLabel.
It can return aStringor aIntegerdepending on you want to set a fixed size in pixels (by int) or a percentage (by string, for instance "50"%).interfaceLabelPositionCallbackinterfacePaddingSizeCallbackCallback interface ofAnnotationPlugin.IDplugin to setxPaddingandyPaddingproperty at runtime, toAbstractAnnotationandLineLabel.interfaceValueCallbackCallback interface ofAnnotationPlugin.IDplugin to set:
xMinforBoxAnnotation,EllipseAnnotationandLineAnnotationxMaxforBoxAnnotation,EllipseAnnotationandLineAnnotationyMinforBoxAnnotation,EllipseAnnotationandLineAnnotationyMaxforBoxAnnotation,EllipseAnnotationandLineAnnotationxValueforPointAnnotationyValueforPointAnnotationvalueforLineAnnotation, infinitive lineendValueforLineAnnotation, infinitive line
properties at runtime. -
Uses of Scriptable in org.pepstock.charba.client.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.callbacks Modifier and Type Interface Description interfaceAngleCallbackCallback interface to setangleproperty ofArcat runtime.interfaceBarBorderWidthCallbackCallback interface to set whateverborderWidthorhoverBorderWidthproperties at runtime, forBarDatasetandMatrixDataset.interfaceBaseCallbackCallback interface to setbaseproperty at runtime forBarDataset.interfaceBorderAlignCallbackCallback interface to setborderAlignproperty at runtime.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.interfaceBorderSkippedCallbackCallback interface to setborderSkippedproperty at runtime.interfaceCapStyleCallback<C extends ChartContext>Callback interface to setborderCapStyleproperty at runtime.interfaceColorCallback<C extends ChartContext>Callback interface to set whatevercolorproperty at runtime.interfaceCountCallbackCallback interface to setcountproperty at runtime, forIsLinearTickinstances.interfaceCubicInterpolationModeCallbackCallback interface to setcubicInterpolationModeproperty at runtime.interfaceDelayCallbackCallback interface to setdelayproperty ofAnimationat runtime.interfaceDisplayCallback<C extends ChartContext>Callback interface to setdisplayproperty at runtime.interfaceDurationCallbackCallback interface to setdurationproperty ofAnimationat runtime.interfaceEasingCallbackCallback interface to seteasingproperty ofAnimationat runtime.interfaceElementAlignCallback<C extends ChartContext>Callback interface to setalignproperty at runtimeinterfaceEnableBorderRadiusCallbackCallback interface to setenableBorderRadiusproperty ofBarat runtime.interfaceFillCallbackCallback interface to setfillproperty at runtime.
The result object can have one of following type:
FillBoolean Integer forAbsoluteDatasetIndexFillString forRelativeDatasetIndexFillinterfaceFontCallback<C extends ChartContext>Callback interface to setfontproperty at runtime to scale instance.interfaceFromCallbackCallback interface to setfromproperty ofAnimationCollectionat runtime.interfaceFullSizeCallback<C extends ChartContext>Callback interface to setfullSizeproperty at runtime.interfaceInflateAmountCallbackCallback interface to setinflateAmountproperty at runtime, forBarDatasetorBarelement instances.
ReturningUndefined.INTEGER, the chart will automatically calculate the amount of pixels to inflate the bar rectangles, when drawing.interfaceJoinStyleCallback<C extends ChartContext>Callback interface to setborderJoinStyleproperty at runtime.interfaceLoopCallbackCallback interface to setloopproperty ofAnimationat runtime.interfaceMaxTicksLimitCallbackCallback interface to setmaxTicksLimitproperty at runtime, forIsLinearTickinstances.interfaceMeterContentCallbackInterface to implement if wants to change the description label content to show inside ofMeterChartorGaugeChart.interfaceMeterFormatCallbackInterface to implement if wants to format the value to show inside ofMeterChartorGaugeChart.interfaceNumberFormatCallbackCallback interface to set a number format element 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.interfacePointStyleCallbackCallback interface to setpointStyleproperty at runtime.interfacePositionCallback<C extends ChartContext>Callback interface to setpositionproperty at runtime.interfacePrecisionCallbackCallback interface to setmaxTicksLimitproperty at runtime, forIsLinearTickinstances.interfaceRadiusCallback<C extends ChartContext>Callback interface to set whateverradiusproperty at runtime.interfaceRotationCallback<C extends ChartContext>Callback interface to set whateverrotationproperty at runtime.interfaceShowLabelBackdropCallbackCallback interface to setshowLabelBackdropproperty at runtime to scale's ticks instance,RadialLinearTick.interfaceSimplePaddingCallbackCallback interface to setpaddingproperty (not as object but only as number) at runtime to scale instance.interfaceSteppedCallbackCallback interface to setsteppedproperty at runtime.interfaceStepSizeCallbackCallback interface to setstepSizeproperty at runtime, forIsLinearTickinstances.interfaceTextAlignCallback<C extends ChartContext>Callback interface to settextAlignproperty at runtimeinterfaceTextCallback<C extends ChartContext>Callback interface to settextproperty at runtime.interfaceToCallbackCallback interface to settoproperty ofAnimationCollectionat runtime.interfaceWidthCallback<C extends ChartContext>Callback interface to set whateverwidthproperty at runtime.Methods in org.pepstock.charba.client.callbacks with parameters of type Scriptable Modifier and Type Method Description static <T,C extends ChartContext>
TScriptableUtils. 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>
TScriptableUtils. 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>
ObjectScriptableUtils. 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>
ObjectScriptableUtils. 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>
FontItemScriptableUtils. 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>
TScriptableUtils. 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>
TScriptableUtils. 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>
PaddingItemScriptableUtils. 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>
TScriptableUtils. 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>
TScriptableUtils. 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. -
Uses of Scriptable in org.pepstock.charba.client.data
Methods in org.pepstock.charba.client.data with parameters of type Scriptable Modifier and Type Method Description protected ObjectDataset. invokeColorCallback(DatasetContext context, Scriptable<?,DatasetContext> callback, org.pepstock.charba.client.data.Dataset.CanvasObjectKey property, 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. -
Uses of Scriptable in org.pepstock.charba.client.datalabels.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.datalabels.callbacks Modifier and Type Interface Description interfaceAlignCallbackCallback interface ofDataLabelsPlugin.IDplugin to setalignproperty at runtime, using the plugin context.interfaceAnchorCallbackCallback interface ofDataLabelsPlugin.IDplugin to setanchorproperty at runtime, using the plugin context.interfaceClampCallbackCallback interface ofDataLabelsPlugin.IDplugin to setclampproperty at runtime, using the plugin context.interfaceClipCallbackCallback interface ofDataLabelsPlugin.IDplugin to setclipproperty at runtime, using the plugin context.interfaceDisplayCallbackCallback interface ofDataLabelsPlugin.IDplugin to setdisplayproperty at runtime, using the plugin context.interfaceOpacityCallbackCallback interface ofDataLabelsPlugin.IDplugin to setopacityproperty at runtime, using the plugin context.interfaceTextShadowBlurCallbackCallback interface ofDataLabelsPlugin.IDplugin to settextShadowBlurproperty at runtime, using the plugin context. -
Uses of Scriptable in org.pepstock.charba.client.geo.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.geo.callbacks Modifier and Type Interface Description interfaceAlignCallbackCallback interface to setalignproperty at runtime inLegenditem.interfaceLengthCallbackCallback interface to setlengthproperty at runtime inLegenditem.interfaceMarginCallbackCallback interface to setmarginproperty at runtime inLegenditem.interfaceModeCallbackinterfacePositionCallbackCallback interface to setpositionproperty at runtime inLegenditem.interfaceQuantizeCallbackinterfaceRangeCallback -
Uses of Scriptable in org.pepstock.charba.client.labels.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.labels.callbacks Modifier and Type Interface Description interfaceRenderCallbackCallback interface ofLabelsPlugin.IDplugin to provide the item to be rendered as string or as image at runtime, using the arguments. -
Uses of Scriptable in org.pepstock.charba.client.matrix.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.matrix.callbacks Modifier and Type Interface Description interfaceSizeCallbackCallback interface of MATRIX callback to setwidthandheightproperties at runtime, toMatrixDataset. -
Uses of Scriptable in org.pepstock.charba.client.sankey.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.sankey.callbacks Modifier and Type Interface Description interfaceColorModeCallbackCallback interface of SANKEY callback to setcolorModeproperty at runtime, toSankeyDataset.interfacePaddingCallbackCallback interface to setpaddingproperty at runtime, toSankeyDataset.interfaceSizeCallbackCallback interface of SANKEY callback to setsizeproperty at runtime, toSankeyDataset. -
Uses of Scriptable in org.pepstock.charba.client.treemap.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.treemap.callbacks Modifier and Type Interface Description interfaceAlignCallbackCallback interface ofTreeMapChartcontroller to setalignproperty at runtime, using the dataset context.interfaceFormatterCallbackCallback interface ofTreeMapChartcontroller to setformatterproperty at runtime, using the dataset context.
Data values are converted to string.
If values are grouped, the value of the group and the value (as string) are shown.
This default behavior can be overridden by this interface implementation.
A formatter can return aString(for a single line) or aListofStrings (for multiple lines, where each item represents a new line).interfacePositionCallbackCallback interface ofTreeMapChartcontroller to setpositionproperty at runtime, using the dataset context. -
Uses of Scriptable in org.pepstock.charba.client.zoom.callbacks
Subinterfaces of Scriptable in org.pepstock.charba.client.zoom.callbacks Modifier and Type Interface Description interfaceModeCallbackCallback interface ofZoomPlugin.IDplugin to set the mode (pan and zoom) directions at runtime.
-