Class Title
- java.lang.Object
-
- org.primefaces.model.charts.optionconfig.title.Title
-
- All Implemented Interfaces:
Serializable
public class Title extends Object implements Serializable
The title configuration is passed into the options.title namespace.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Title()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode()
Write the options of TitleString
getFontColor()
Gets the fontColorString
getFontFamily()
Gets the fontFamilyNumber
getFontSize()
Gets the fontSizeString
getFontStyle()
Gets the fontStyleObject
getLineHeight()
Gets the lineHeightNumber
getPadding()
Gets the paddingString
getPosition()
Gets the positionObject
getText()
Gets the textboolean
isDisplay()
Gets the displayvoid
setDisplay(boolean display)
Sets the displayvoid
setFontColor(String fontColor)
Sets the fontColorvoid
setFontFamily(String fontFamily)
Sets the fontFamilyvoid
setFontSize(Number fontSize)
Sets the fontSizevoid
setFontStyle(String fontStyle)
Sets the fontStylevoid
setLineHeight(Object lineHeight)
Sets the lineHeightvoid
setPadding(Number padding)
Sets the paddingvoid
setPosition(String position)
Sets the positionvoid
setText(Object text)
Sets the text
-
-
-
Method Detail
-
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
public String getPosition()
Gets the position- Returns:
- position
-
setPosition
public void setPosition(String position)
Sets the position- Parameters:
position
- Position of title.
-
getFontSize
public Number getFontSize()
Gets the fontSize- Returns:
- fontSize
-
setFontSize
public void setFontSize(Number fontSize)
Sets the fontSize- Parameters:
fontSize
- Font size
-
getFontFamily
public String getFontFamily()
Gets the fontFamily- Returns:
- fontFamily
-
setFontFamily
public void setFontFamily(String fontFamily)
Sets the fontFamily- Parameters:
fontFamily
- Font family for the title text.
-
getFontColor
public String getFontColor()
Gets the fontColor- Returns:
- fontColor
-
setFontColor
public void setFontColor(String fontColor)
Sets the fontColor- Parameters:
fontColor
- Font color
-
getFontStyle
public String getFontStyle()
Gets the fontStyle- Returns:
- fontStyle
-
setFontStyle
public void setFontStyle(String fontStyle)
Sets the fontStyle- Parameters:
fontStyle
- Font style
-
getPadding
public Number getPadding()
Gets the padding- Returns:
- padding
-
setPadding
public void setPadding(Number padding)
Sets the padding- Parameters:
padding
- Number of pixels to add above and below the title text.
-
getLineHeight
public Object getLineHeight()
Gets the lineHeight- Returns:
- lineHeight
-
setLineHeight
public void setLineHeight(Object lineHeight)
Sets the lineHeight- Parameters:
lineHeight
- Height of an individual line of text
-
getText
public Object getText()
Gets the text- Returns:
- text
-
setText
public void setText(Object text)
Sets the text- Parameters:
text
- Title text to display. If specified as an array, text is rendered on multiple lines.
-
encode
public String encode() throws IOException
Write the options of Title- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-