public abstract class AbstractFont extends NativeObjectContainer implements IsFont
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFont(IsDefaultFont defaultValues)
Creates an empty font to use for chart configuration.
|
protected |
AbstractFont(IsDefaultFont defaultValues,
NativeObject nativeObject)
Creates a font to use for chart configuration, wrapping a native object instance.
|
| Modifier and Type | Method and Description |
|---|---|
FontItem |
create()
Creates a font options instance using default or cloning current instance.
|
String |
getFamily()
Returns the font family, follows CSS font-family options.
|
double |
getLineHeight()
Returns the height of an individual line of text.
|
String |
getLineHeightAsString()
Returns the height of an individual line of text as string.
|
protected NativeObject |
getObject()
Returns the native object instance.
|
int |
getSize()
Returns the font size.
|
FontStyle |
getStyle()
Returns the font style, follows CSS font-style options (i.e.
|
Weight |
getWeight()
Returns the font weight, follows CSS font-style-weight options.
|
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.
|
checkDefaultValuesArgument, empty, getArrayValue, getElement, 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, setElement, 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, create, getFamily, getLineHeight, getLineHeightAsString, getSize, getStyle, getWeightprotected AbstractFont(IsDefaultFont defaultValues)
defaultValues - default providerprotected AbstractFont(IsDefaultFont defaultValues, NativeObject nativeObject)
defaultValues - default providernativeObject - native object to map java script propertiespublic void setSize(int size)
IsFontpublic void setStyle(FontStyle style)
IsFontpublic void setFamily(String family)
IsFontpublic void setWeight(Weight weight)
IsFontpublic void setLineHeight(double lineHeight)
IsFontsetLineHeight in interface IsFontlineHeight - the line height.public void setLineHeight(String lineHeight)
IsFontsetLineHeight in interface IsFontlineHeight - the line height.public int getSize()
IsDefaultFontgetSize in interface IsDefaultFontpublic FontStyle getStyle()
IsDefaultFontgetStyle in interface IsDefaultFontpublic String getFamily()
IsDefaultFontgetFamily in interface IsDefaultFontpublic Weight getWeight()
IsDefaultFontgetWeight in interface IsDefaultFontpublic double getLineHeight()
IsDefaultFontgetLineHeight in interface IsDefaultFontpublic String getLineHeightAsString()
IsDefaultFontgetLineHeightAsString in interface IsDefaultFontpublic FontItem create()
IsDefaultFontcreate in interface IsDefaultFontprotected final NativeObject getObject()