public interface HasFont extends IsDefaultFontContainer
Modifier and Type | Method and Description |
---|---|
default IsColor |
getColor()
Returns the font color.
|
default String |
getColorAsString()
Returns the font color as string.
|
default IsFont |
getFont()
Returns the font element.
|
FontContainer |
getFontContainer()
Returns a font container instance to use in the default methods of this interface.
|
default void |
setColor(IsColor color)
Sets the font color.
|
default void |
setColor(String color)
Sets the font color.
|
FontContainer getFontContainer()
default IsFont getFont()
getFont
in interface IsDefaultFontContainer
default void setColor(IsColor color)
color
- font color.default void setColor(String color)
color
- font color.default String getColorAsString()
getColorAsString
in interface IsDefaultFontContainer
default IsColor getColor()