public final class Fonter extends NativeObjectContainer
Constructor and Description |
---|
Fonter(NativeObject nativeObject,
org.pepstock.charba.client.options.AbstractModel<?,?> model,
IsDefaultFontItem defaultValues)
Creates a fonter with the native object where FONTs properties must be managed and the default value to use when the
property does not exist.
|
Modifier and Type | Method and Description |
---|---|
IsColor |
getFontColor()
Returns the font color
|
String |
getFontColorAsString()
Returns the font color
|
String |
getFontFamily()
Returns the font family, follows CSS font-family options.
|
int |
getFontSize()
Returns the font size.
|
FontStyle |
getFontStyle()
Returns the font style, follows CSS font-style options (i.e.
|
void |
setFontColor(IsColor fontColor)
Sets the font color
|
void |
setFontColor(String fontColor)
Sets the font color
|
void |
setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family options.
|
void |
setFontSize(int fontSize)
Sets the font size.
|
void |
setFontStyle(FontStyle fontStyle)
Sets the font style, follows CSS font-style options (i.e.
|
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public Fonter(NativeObject nativeObject, org.pepstock.charba.client.options.AbstractModel<?,?> model, IsDefaultFontItem defaultValues)
nativeObject
- native object where FONTs properties must be managedmodel
- model which contains the fonter.defaultValues
- default value of FONTs to use when the properties do not existpublic void setFontSize(int fontSize)
fontSize
- the font size.public int getFontSize()
public void setFontStyle(FontStyle fontStyle)
fontStyle
- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).public FontStyle getFontStyle()
public void setFontColor(IsColor fontColor)
fontColor
- Font colorpublic void setFontColor(String fontColor)
fontColor
- Font colorpublic String getFontColorAsString()
public IsColor getFontColor()
public void setFontFamily(String fontFamily)
fontFamily
- Font family, follows CSS font-family options.public String getFontFamily()