public interface HasFont extends IsDefaultFontItem
| Modifier and Type | Method and Description |
|---|---|
default IsColor |
getFontColor()
Returns the font color.
|
default String |
getFontColorAsString()
Returns the font color as string.
|
Fonter |
getFonter()
Returns a fonter instance to use into default methods of this interface.
|
default String |
getFontFamily()
Returns the font family, follows CSS font-family options.
|
default int |
getFontSize()
Returns the font size.
|
default FontStyle |
getFontStyle()
Returns the font style, follows CSS font-style options (i.e.
|
default void |
setFontColor(IsColor fontColor)
Sets the font color.
|
default void |
setFontColor(String fontColor)
Sets the font color as string.
|
default void |
setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family options.
|
default void |
setFontSize(int fontSize)
Sets the font size.
|
default void |
setFontStyle(FontStyle fontStyle)
Sets the font style, follows CSS font-style options (i.e.
|
Fonter getFonter()
default void setFontSize(int fontSize)
fontSize - the font size.default int getFontSize()
getFontSize in interface IsDefaultFontItemdefault void setFontStyle(FontStyle fontStyle)
fontStyle - Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).default FontStyle getFontStyle()
getFontStyle in interface IsDefaultFontItemdefault void setFontColor(IsColor fontColor)
fontColor - font colordefault void setFontColor(String fontColor)
fontColor - font color as string.default String getFontColorAsString()
getFontColorAsString in interface IsDefaultFontItemdefault IsColor getFontColor()
default void setFontFamily(String fontFamily)
fontFamily - Font family, follows CSS font-family options.default String getFontFamily()
getFontFamily in interface IsDefaultFontItem