Class CartesianScaleTitle
java.lang.Object
org.primefaces.model.charts.axes.cartesian.CartesianScaleTitle
- All Implemented Interfaces:
Serializable
The scale label configuration is nested under the scale configuration in the scaleLabel key.
It defines options for the scale title.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of scale labelgetAlign()Gets the aligngetFont()Gets the fontColorGets the fontFamilyGets the fontSizeGets the fontStyleGets the lineHeightGets the paddinggetText()Gets the title textbooleanGets the displayvoidAlignment of the axis title.voidsetDisplay(boolean display) Sets the displayvoidvoidsetFontColor(String fontColor) Sets the fontColorvoidsetFontFamily(String fontFamily) Sets the fontFamilyvoidsetFontSize(Number fontSize) Sets the fontSizevoidsetFontStyle(String fontStyle) Sets the fontStylevoidsetLineHeight(Object lineHeight) Sets the lineHeightvoidsetPadding(Object padding) Sets the paddingvoidSets the title text
-
Constructor Details
-
CartesianScaleTitle
public CartesianScaleTitle()
-
-
Method Details
-
isDisplay
public boolean isDisplay()Gets the display- Returns:
- display
-
setDisplay
public void setDisplay(boolean display) Sets the display- Parameters:
display- If true, display the axis title.
-
getText
Gets the title text- Returns:
- text
-
setText
Sets the title text- Parameters:
text- The text for the title.
-
getAlign
Gets the align- Returns:
- align
-
setAlign
Alignment of the axis title. Possible options are 'start', 'center' and 'end'- Parameters:
align- The align for the title.
-
getLineHeight
Gets the lineHeight- Returns:
- lineHeight
-
setLineHeight
Sets the lineHeight- Parameters:
lineHeight- Height of an individual line of text
-
getFontColor
Gets the fontColor- Returns:
- fontColor
-
setFontColor
Sets the fontColor- Parameters:
fontColor- Font color for scale title.
-
getFontFamily
Gets the fontFamily- Returns:
- fontFamily
-
setFontFamily
Sets the fontFamily- Parameters:
fontFamily- Font family for the scale title, follows CSS font-family options.
-
getFontSize
Gets the fontSize- Returns:
- fontSize
-
setFontSize
Sets the fontSize- Parameters:
fontSize- Font size for scale title.
-
getFontStyle
Gets the fontStyle- Returns:
- fontStyle
-
setFontStyle
Sets the fontStyle- Parameters:
fontStyle- Font style for the scale title, follows CSS font-style options.
-
getPadding
Gets the padding- Returns:
- padding
-
setPadding
Sets the padding- Parameters:
padding- Padding to apply around scale labels. Only top and bottom are implemented.
-
getFont
-
setFont
-
encode
Write the options of scale label- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-