Class LegendLabel
java.lang.Object
org.primefaces.model.charts.optionconfig.legend.LegendLabel
- All Implemented Interfaces:
Serializable
The legend label configuration is nested below the legend configuration using the labels key.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of scale labelwidth of colored boxgetFont()Font color for the label.Font family for the label, follows CSS font-family options.Font size for the label.Font style for the label, follows CSS font-style options.Padding between rows of colored boxes.booleanLabel style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).voidsetBoxWidth(Number boxWidth) width of colored boxvoidvoidsetFontColor(String fontColor) Font color for the label.voidsetFontFamily(String fontFamily) Font family for the label, follows CSS font-family options.voidsetFontSize(Number fontSize) Font size for the label.voidsetFontStyle(String fontStyle) Font style for the label, follows CSS font-style options.voidsetPadding(Number padding) Padding between rows of colored boxes.voidsetUsePointStyle(boolean usePointStyle) Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).
-
Constructor Details
-
LegendLabel
public LegendLabel()
-
-
Method Details
-
getBoxWidth
width of colored box- Returns:
- the boxWidth
-
setBoxWidth
width of colored box- Parameters:
boxWidth- the boxWidth to set
-
getFontColor
Font color for the label.- Returns:
- the fontColor
-
setFontColor
Font color for the label.- Parameters:
fontColor- the fontColor to set
-
getFontFamily
Font family for the label, follows CSS font-family options.- Returns:
- the fontFamily
-
setFontFamily
Font family for the label, follows CSS font-family options.- Parameters:
fontFamily- the fontFamily to set
-
getFontSize
Font size for the label.- Returns:
- the fontSize
-
setFontSize
Font size for the label.- Parameters:
fontSize- the fontSize to set
-
getFontStyle
Font style for the label, follows CSS font-style options.- Returns:
- the fontStyle
-
setFontStyle
Font style for the label, follows CSS font-style options.- Parameters:
fontStyle- the fontStyle to set
-
getPadding
Padding between rows of colored boxes.- Returns:
- the padding
-
setPadding
Padding between rows of colored boxes.- Parameters:
padding- the padding to set
-
isUsePointStyle
public boolean isUsePointStyle()Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).- Returns:
- the usePointStyle
-
setUsePointStyle
public void setUsePointStyle(boolean usePointStyle) Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).- Parameters:
usePointStyle- the usePointStyle to set
-
getFont
-
setFont
-
encode
Write the options of scale label- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-