Interface HasFont
-
- All Superinterfaces:
IsDefaultFontContainer
- All Known Implementing Classes:
AbstractTitle
,Action
,ActionItem
,Label
,LegendLabels
,LegendTitle
,PointLabels
,ScaleTitle
,Subtitle
,Ticks
,Title
,Title
public interface HasFont extends IsDefaultFontContainer
Interface to map the font and color options.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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(String color)
Sets the font color.default void
setColor(IsColor color)
Sets the font color.
-
-
-
Method Detail
-
getFontContainer
FontContainer getFontContainer()
Returns a font container instance to use in the default methods of this interface.- Returns:
- a font container instance
-
getFont
default IsFont getFont()
Returns the font element.- Specified by:
getFont
in interfaceIsDefaultFontContainer
- Returns:
- the font
-
setColor
default void setColor(IsColor color)
Sets the font color.- Parameters:
color
- font color.
-
setColor
default void setColor(String color)
Sets the font color.- Parameters:
color
- font color.
-
getColorAsString
default String getColorAsString()
Returns the font color as string.- Specified by:
getColorAsString
in interfaceIsDefaultFontContainer
- Returns:
- font color as string
-
getColor
default IsColor getColor()
Returns the font color.- Returns:
- font color
-
-