public class FontItem extends AbstractItem
Modifier | Constructor and Description |
---|---|
protected |
FontItem(AbstractItem parent,
Key childKey)
Builds the object with parent item and child.
|
Modifier and Type | Method and Description |
---|---|
IsColor |
getFontColor()
Returns the font color
|
java.lang.String |
getFontColorAsString()
Returns the font color
|
java.lang.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(java.lang.String fontColor)
Sets the font color
|
void |
setFontFamily(java.lang.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.
|
checkAndAddToParent, hasProperty
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
protected FontItem(AbstractItem parent, Key childKey)
parent
- parent itemchildKey
- key of childpublic void setFontSize(int fontSize)
fontSize
- the font size.public int getFontSize()
Options.getDefaultFontSize()
.public void setFontStyle(FontStyle fontStyle)
fontStyle
- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).FontStyle
public FontStyle getFontStyle()
Options.getDefaultFontStyle()
.FontStyle
public void setFontColor(IsColor fontColor)
fontColor
- Font colorpublic void setFontColor(java.lang.String fontColor)
fontColor
- Font colorpublic java.lang.String getFontColorAsString()
Options.getDefaultFontColor()
.public IsColor getFontColor()
Options.getDefaultFontColor()
.public void setFontFamily(java.lang.String fontFamily)
fontFamily
- Font family, follows CSS font-family options.public java.lang.String getFontFamily()
Options.getDefaultFontFamily()
.