Package org.primefaces.model.charts.axes
Class AxesTicks
java.lang.Object
org.primefaces.model.charts.axes.AxesTicks
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RadialLinearTicks
The tick configuration is nested under the scale configuration.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the common ticks options of axesgetFont()Gets the fontColorGets the fontFamilyGets the fontSizeGets the fontStylebooleanGets the displaybooleanGets the reversevoidsetDisplay(boolean display) Sets the displayvoidvoidsetFontColor(String fontColor) Sets the fontColorvoidsetFontFamily(String fontFamily) Sets the fontFamilyvoidsetFontSize(Number fontSize) Sets the fontSizevoidsetFontStyle(String fontStyle) Sets the fontStylevoidsetReverse(boolean reverse) Sets the reverse
-
Constructor Details
-
AxesTicks
public AxesTicks()
-
-
Method Details
-
isDisplay
public boolean isDisplay()Gets the display- Returns:
- display
-
setDisplay
public void setDisplay(boolean display) Sets the display- Parameters:
display- If true, show tick marks.
-
getFontColor
Gets the fontColor- Returns:
- fontColor
-
setFontColor
Sets the fontColor- Parameters:
fontColor- Font color for tick labels.
-
getFontFamily
Gets the fontFamily- Returns:
- fontFamily
-
setFontFamily
Sets the fontFamily- Parameters:
fontFamily- Font family for the tick labels.
-
getFontSize
Gets the fontSize- Returns:
- fontSize
-
setFontSize
Sets the fontSize- Parameters:
fontSize- Font size for the tick labels.
-
getFontStyle
Gets the fontStyle- Returns:
- fontStyle
-
setFontStyle
Sets the fontStyle- Parameters:
fontStyle- Font style for the tick labels.
-
isReverse
public boolean isReverse()Gets the reverse- Returns:
- reverse
-
setReverse
public void setReverse(boolean reverse) Sets the reverse- Parameters:
reverse- Reverses order of tick labels.
-
getFont
-
setFont
-
encode
Write the common ticks options of axes- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-