Class CrosshairLabelsFont
- java.lang.Object
-
- org.pepstock.charba.client.impl.plugins.CrosshairLabelsFont
-
public final class CrosshairLabelsFont extends Object
Utility provided to the user in order to set the same values to all font labels, X and Y.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetFamily(String family)Sets the font family, follows CSS font-family options.voidsetLineHeight(double lineHeight)Sets the line height.voidsetLineHeight(String lineHeight)Sets the line height.voidsetSize(int size)Sets the font size.voidsetStyle(FontStyle style)Sets the font style, follows CSS font-style options (i.e.voidsetWeight(Weight weight)Sets the font weight, follows CSS font-style-weight options.
-
-
-
Method Detail
-
setSize
public void setSize(int size)
Sets the font size.- Parameters:
size- the font size.
-
setStyle
public void setStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).- Parameters:
style- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
-
setFamily
public void setFamily(String family)
Sets the font family, follows CSS font-family options.- Parameters:
family- Font family, follows CSS font-family options.
-
setWeight
public void setWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options.- Parameters:
weight- font weight, follows CSS font-style-weight options.
-
setLineHeight
public void setLineHeight(double lineHeight)
Sets the line height.- Parameters:
lineHeight- the line height.
-
setLineHeight
public void setLineHeight(String lineHeight)
Sets the line height.- Parameters:
lineHeight- the line height.
-
-