Interface IsScriptableFontProvider<T extends ChartContext>
-
- Type Parameters:
T- type of scriptable context
- All Known Implementing Classes:
BoxLabel,CartesianCategoryTick,CartesianLinearTick,CartesianLogarithmicTick,CartesianTimeTick,DataLabelsOptions,Label,LabelAnnotation,LabelItem,LineLabel,RadialLinearTick,RadialPointLabels,Subtitle,Title
public interface IsScriptableFontProvider<T extends ChartContext>Map an object which contains a font instance which can be set by callback,FontCallback.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FontCallback<T>getFontCallback()Returns theFontCallbackif it has been set ornull.voidsetFont(FontCallback<T> fontCallback)Sets the font callback.voidsetFont(NativeCallback fontCallback)Sets the font callback.
-
-
-
Method Detail
-
getFontCallback
FontCallback<T> getFontCallback()
Returns theFontCallbackif it has been set ornull.- Returns:
- the
FontCallbackif it has been set ornull.
-
setFont
void setFont(FontCallback<T> fontCallback)
Sets the font callback.- Parameters:
fontCallback- the font callback.
-
setFont
void setFont(NativeCallback fontCallback)
Sets the font callback.- Parameters:
fontCallback- the font callback.
-
-