Class Title
java.lang.Object
org.primefaces.model.charts.optionconfig.title.Title
- All Implemented Interfaces:
Serializable
The title configuration is passed into the options.title namespace.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of TitlegetFont()Gets the fontColorGets the fontFamilyGets the fontSizeGets the fontStyleGets the lineHeightGets the paddingGets the positiongetText()Gets the textbooleanGets the displaybooleanvoidsetDisplay(boolean display) Sets the displayvoidvoidsetFontColor(String fontColor) Sets the fontColorvoidsetFontFamily(String fontFamily) Sets the fontFamilyvoidsetFontSize(Number fontSize) Sets the fontSizevoidsetFontStyle(String fontStyle) Sets the fontStylevoidsetFullSize(boolean fullSize) voidsetLineHeight(Object lineHeight) Sets the lineHeightvoidsetPadding(Number padding) Sets the paddingvoidsetPosition(String position) Sets the positionvoidSets the text
-
Constructor Details
-
Title
public Title()
-
-
Method Details
-
isDisplay
public boolean isDisplay()Gets the display- Returns:
- display
-
setDisplay
public void setDisplay(boolean display) Sets the display- Parameters:
display- is the title shown
-
getPosition
Gets the position- Returns:
- position
-
setPosition
Sets the position- Parameters:
position- Position of title.
-
getFontSize
Gets the fontSize- Returns:
- fontSize
-
setFontSize
Sets the fontSize- Parameters:
fontSize- Font size
-
getFontFamily
Gets the fontFamily- Returns:
- fontFamily
-
setFontFamily
Sets the fontFamily- Parameters:
fontFamily- Font family for the title text.
-
getFontColor
Gets the fontColor- Returns:
- fontColor
-
setFontColor
Sets the fontColor- Parameters:
fontColor- Font color
-
getFontStyle
Gets the fontStyle- Returns:
- fontStyle
-
setFontStyle
Sets the fontStyle- Parameters:
fontStyle- Font style
-
getPadding
Gets the padding- Returns:
- padding
-
setPadding
Sets the padding- Parameters:
padding- Number of pixels to add above and below the title text.
-
getLineHeight
Gets the lineHeight- Returns:
- lineHeight
-
setLineHeight
Sets the lineHeight- Parameters:
lineHeight- Height of an individual line of text
-
getText
Gets the text- Returns:
- text
-
setText
Sets the text- Parameters:
text- Title text to display. If specified as an array, text is rendered on multiple lines.
-
isFullSize
public boolean isFullSize() -
setFullSize
public void setFullSize(boolean fullSize) -
getFont
-
setFont
-
encode
Write the options of Title- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-