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 IsColorgetColor()Returns the font color.default StringgetColorAsString()Returns the font color as string.default IsFontgetFont()Returns the font element.FontContainergetFontContainer()Returns a font container instance to use in the default methods of this interface.default voidsetColor(String color)Sets the font color.default voidsetColor(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:
getFontin 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:
getColorAsStringin interfaceIsDefaultFontContainer- Returns:
- font color as string
-
getColor
default IsColor getColor()
Returns the font color.- Returns:
- font color
-
-