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 SummaryAll 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- 
setSizepublic void setSize(int size) Sets the font size.- Parameters:
- size- the font size.
 
 - 
setStylepublic 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).
 
 - 
setFamilypublic void setFamily(String family) Sets the font family, follows CSS font-family options.- Parameters:
- family- Font family, follows CSS font-family options.
 
 - 
setWeightpublic void setWeight(Weight weight) Sets the font weight, follows CSS font-style-weight options.- Parameters:
- weight- font weight, follows CSS font-style-weight options.
 
 - 
setLineHeightpublic void setLineHeight(double lineHeight) Sets the line height.- Parameters:
- lineHeight- the line height.
 
 - 
setLineHeightpublic void setLineHeight(String lineHeight) Sets the line height.- Parameters:
- lineHeight- the line height.
 
 
- 
 
-