T - type of scriptable contextpublic abstract class AbstractScriptableFont<T extends ChartContext> extends AbstractFont
FontCallback if the
IsScriptableFontProvider instance has been set with a FontCallback.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScriptableFont(IsScriptableFontProvider<T> scriptableFontProvider,
IsDefaultFont defaultValues)
Creates an empty font to use for chart configuration.
|
protected |
AbstractScriptableFont(IsScriptableFontProvider<T> scriptableFontProvider,
IsDefaultFont defaultValues,
NativeObject nativeObject)
Creates a font to use for chart configuration, wrapping a native object instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
resetCallback()
Invokes when any property of the font is being set, in order to reset the
FontCallback if exists |
void |
setFamily(String family)
Sets the font family, follows CSS font-family options.
|
void |
setLineHeight(double lineHeight)
Sets the line height.
|
void |
setLineHeight(String lineHeight)
Sets the line height.
|
void |
setSize(int size)
Sets the font size.
|
void |
setStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e.
|
void |
setWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options.
|
getFamily, getLineHeight, getLineHeightAsString, getObject, getSize, getStyle, getWeightcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createprotected AbstractScriptableFont(IsScriptableFontProvider<T> scriptableFontProvider, IsDefaultFont defaultValues)
scriptableFontProvider - the provider of font callbackdefaultValues - default providerprotected AbstractScriptableFont(IsScriptableFontProvider<T> scriptableFontProvider, IsDefaultFont defaultValues, NativeObject nativeObject)
scriptableFontProvider - the provider of font callbackdefaultValues - default providernativeObject - native object to map java script propertiespublic void setSize(int size)
IsFontsetSize in interface IsFontsetSize in class AbstractFontsize - the font size.public void setStyle(FontStyle style)
IsFontsetStyle in interface IsFontsetStyle in class AbstractFontstyle - Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).public void setFamily(String family)
IsFontsetFamily in interface IsFontsetFamily in class AbstractFontfamily - Font family, follows CSS font-family options.public void setWeight(Weight weight)
IsFontsetWeight in interface IsFontsetWeight in class AbstractFontweight - font weight, follows CSS font-style-weight options.public void setLineHeight(double lineHeight)
IsFontsetLineHeight in interface IsFontsetLineHeight in class AbstractFontlineHeight - the line height.public void setLineHeight(String lineHeight)
IsFontsetLineHeight in interface IsFontsetLineHeight in class AbstractFontlineHeight - the line height.protected void resetCallback()
FontCallback if exists