Uses of Interface
org.pepstock.charba.client.callbacks.Scriptable
-
Packages that use Scriptable Package Description org.pepstock.charba.client.annotation.callbacks Contains theAnnotationPlugin.ID
plugin 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.ID
plugin 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.ID
plugin 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 theTreeMapChart
controller callback interfaces to configure the chart itself.org.pepstock.charba.client.zoom.callbacks Contains theZoomPlugin.ID
plugin 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 interface
AdjustScaleRangeCallback
Callback interface ofAnnotationPlugin.ID
plugin to setadjustScaleRange
property at runtime, toAbstractAnnotation
.interface
AdjustSizeCallback
Callback interface ofAnnotationPlugin.ID
plugin to setxAdjust
andyAdjust
property at runtime, toAbstractAnnotation
andLineLabel
.interface
CalloutPositionCallback
interface
ContentCallback
Callback interface ofAnnotationPlugin.ID
plugin to setcontent
property at runtime to forLineLabel
.interface
DrawTimeCallback
Callback interface ofAnnotationPlugin.ID
plugin to setdrawTime
property at runtime, in all annotations.interface
FillCallback
interface
ImageSizeCallback
Callback interface ofAnnotationPlugin.ID
plugin to setwidth
andheight
properties at runtime, toLineLabel
.
It can return aString
or aInteger
depending on you want to set a fixed size in pixels (by int) or a percentage (by string, for instance "50"%).interface
LabelAlignPositionCallback
interface
LabelPositionCallback
interface
LengthCallback
interface
MarginCallback
Callback interface to setmargin
property at runtime inCallout
item.interface
ShadowBlurCallback
Callback interface ofAnnotationPlugin.ID
plugin to setshadowBlur
property at runtime.interface
ShadowOffsetCallback
Callback interface ofAnnotationPlugin.ID
plugin to setshadowOffsetX
andshadowOffsetY
properties at runtime.interface
SideCallback
interface
SidesCallback
Callback interface ofAnnotationPlugin.ID
plugin to setsides
property at runtime, toPolygonAnnotation
.interface
StartCallback
interface
ValueCallback
Callback interface ofAnnotationPlugin.ID
plugin to set:
xMin
forBoxAnnotation
,EllipseAnnotation
andLineAnnotation
xMax
forBoxAnnotation
,EllipseAnnotation
andLineAnnotation
yMin
forBoxAnnotation
,EllipseAnnotation
andLineAnnotation
yMax
forBoxAnnotation
,EllipseAnnotation
andLineAnnotation
xValue
forPointAnnotation
yValue
forPointAnnotation
value
forLineAnnotation
, infinitive lineendValue
forLineAnnotation
, infinitive line
properties at runtime.interface
ZCallback
Callback interface ofAnnotationPlugin.ID
plugin to setz
property 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 interface
AlignToPixelsCallback
Callback interface to set whateveralignToPixels
property at runtime, forAxis
.interface
AngleCallback
Callback interface to setangle
property ofArc
at runtime.interface
BarBorderWidthCallback
Callback interface to set whateverborderWidth
orhoverBorderWidth
properties at runtime, forBarDataset
andMatrixDataset
.interface
BaseCallback
Callback interface to setbase
property at runtime forBarDataset
.interface
BeginAtZeroCallback
Callback interface to set whateverbeginAtZero
property at runtime, forCartesianLinearAxis
.interface
BorderAlignCallback
Callback interface to setborderAlign
property at runtime.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
BorderSkippedCallback
Callback interface to setborderSkipped
property at runtime.interface
BoundsCallback
Callback interface to set whateverbounds
property at runtime, forCartesianAxis
.interface
CapStyleCallback<C extends ChartContext>
Callback interface to setborderCapStyle
property at runtime.interface
CircularCallback
Callback interface to setcircular
property ofArc
at runtime.interface
ColorCallback<C extends ChartContext>
Callback interface to set whatevercolor
property at runtime.interface
CountCallback
Callback interface to setcount
property at runtime, forIsLinearTick
instances.interface
CubicInterpolationModeCallback
Callback interface to setcubicInterpolationMode
property at runtime.interface
DelayCallback
Callback interface to setdelay
property ofAnimation
at runtime.interface
DisplayCallback<C extends ChartContext>
Callback interface to setdisplay
property where it can be set byDisplay
or a boolean.interface
DrawActiveElementsOnTopCallback
Callback interface to setdrawActiveElementsOnTop
property of at runtime.interface
DurationCallback
Callback interface to setduration
property ofAnimation
at runtime.interface
EasingCallback
Callback interface to seteasing
property ofAnimation
at runtime.interface
ElementAlignCallback<C extends ChartContext>
Callback interface to setalign
property at runtimeinterface
EnableBorderRadiusCallback
Callback interface to setenableBorderRadius
property ofBar
at runtime.interface
FillCallback
Callback interface to setfill
property at runtime.
The result object can have one of following type:
Fill
Boolean Integer forAbsoluteDatasetIndexFill
String forRelativeDatasetIndexFill
interface
FontCallback<C extends ChartContext>
Callback interface to setfont
property at runtime to scale instance.interface
FromCallback
Callback interface to setfrom
property ofAnimationCollection
at runtime.interface
FullSizeCallback<C extends ChartContext>
Callback interface to setfullSize
property at runtime.interface
GraceCallback
Callback interface to set whatevergrace
property at runtime, forCartesianLinearAxis
.interface
InflateAmountCallback
Callback interface to setinflateAmount
property at runtime, forBarDataset
orBar
element instances.
ReturningUndefined.INTEGER
, the chart will automatically calculate the amount of pixels to inflate the bar rectangles, when drawing.interface
JoinStyleCallback<C extends ChartContext>
Callback interface to setborderJoinStyle
property at runtime.interface
LoopCallback
Callback interface to setloop
property ofAnimation
at runtime.interface
MaxTicksLimitCallback
Callback interface to setmaxTicksLimit
property at runtime, forIsLinearTick
instances.interface
MeterContentCallback
Interface to implement if wants to change the description label content to show inside ofMeterChart
orGaugeChart
.interface
MeterFormatCallback
Interface to implement if wants to format the value to show inside ofMeterChart
orGaugeChart
.interface
MinMaxCallback<T>
Callback interface to setmin
,max
,suggestedMin
andsuggestedMax
properties for the axes.interface
NumberFormatCallback
Callback interface to set a number format element 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
PrecisionCallback
Callback interface to setmaxTicksLimit
property at runtime, forIsLinearTick
instances.interface
RadiusCallback<C extends ChartContext>
Callback interface to set whateverradius
property at runtime.interface
ReverseCallback
Callback interface to setreverse
property ofAxis
at runtime.interface
RotationCallback<C extends ChartContext>
Callback interface to set whateverrotation
property at runtime.interface
ScaleOffsetCallback
Callback interface to set whateveroffset
property at runtime, forCartesianAxis
.interface
ScalePositionCallback
Callback interface to setposition
property at runtime, forCartesianAxis
.interface
ScaleWeightCallback
Callback interface to set whateverweight
property at runtime, forAxis
.interface
ShowLabelBackdropCallback
Callback interface to setshowLabelBackdrop
property at runtime to scale's ticks instance,RadialLinearTick
.interface
SimpleDisplayCallback<C extends ChartContext>
Callback interface to setdisplay
property at runtime.interface
SimplePaddingCallback
Callback interface to setpadding
property (not as object but only as number) at runtime to scale instance.interface
StackCallback
Callback interface to set whateverstack
property at runtime, forCartesianAxis
.interface
StackedCallback
Callback interface to set whateverstacked
property at runtime, forCartesianAxis
.interface
StartAngleCallback
Callback interface to set whateverstartAngle
property at runtime, forRadialAxis
.interface
SteppedCallback
Callback interface to setstepped
property at runtime.interface
StepSizeCallback
Callback interface to setstepSize
property at runtime, forIsLinearTick
instances.interface
TextAlignCallback<C extends ChartContext>
Callback interface to settextAlign
property at runtimeinterface
TextCallback<C extends ChartContext>
Callback interface to settext
property at runtime.interface
ToCallback
Callback interface to setto
property ofAnimationCollection
at runtime.interface
WidthCallback<C extends ChartContext>
Callback interface to set whateverwidth
property at runtime.Methods in org.pepstock.charba.client.callbacks with parameters of type Scriptable 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. -
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 Object
Dataset. 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 interface
AlignCallback
Callback interface ofDataLabelsPlugin.ID
plugin to setalign
property at runtime, using the plugin context.interface
AnchorCallback
Callback interface ofDataLabelsPlugin.ID
plugin to setanchor
property at runtime, using the plugin context.interface
ClampCallback
Callback interface ofDataLabelsPlugin.ID
plugin to setclamp
property at runtime, using the plugin context.interface
ClipCallback
Callback interface ofDataLabelsPlugin.ID
plugin to setclip
property at runtime, using the plugin context.interface
OpacityCallback
Callback interface ofDataLabelsPlugin.ID
plugin to setopacity
property at runtime, using the plugin context.interface
TextShadowBlurCallback
Callback interface ofDataLabelsPlugin.ID
plugin to settextShadowBlur
property 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 interface
AlignCallback
Callback interface to setalign
property at runtime inLegend
item.interface
LengthCallback
Callback interface to setlength
property at runtime inLegend
item.interface
MarginCallback
Callback interface to setmargin
property at runtime inLegend
item.interface
ModeCallback
interface
PositionCallback
Callback interface to setposition
property at runtime inLegend
item.interface
QuantizeCallback
interface
RangeCallback
-
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 interface
RenderCallback
Callback interface ofLabelsPlugin.ID
plugin 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 interface
SizeCallback
Callback interface of MATRIX callback to setwidth
andheight
properties 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 interface
ColorModeCallback
Callback interface of SANKEY callback to setcolorMode
property at runtime, toSankeyDataset
.interface
PaddingCallback
Callback interface to setpadding
property at runtime, toSankeyDataset
.interface
SizeCallback
Callback interface of SANKEY callback to setsize
property 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 interface
AlignCallback
Callback interface ofTreeMapChart
controller to setalign
property at runtime, using the dataset context.interface
FormatterCallback
Callback interface ofTreeMapChart
controller to setformatter
property 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 aList
ofString
s (for multiple lines, where each item represents a new line).interface
PositionCallback
Callback interface ofTreeMapChart
controller to setposition
property 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 interface
ModeCallback
Callback interface ofZoomPlugin.ID
plugin to set the mode (pan and zoom) directions at runtime.
-