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
-
Method Summary
Modifier and TypeMethodDescriptionencode()
Write the common ticks options of axesgetFont()
Gets the fontColorGets the fontFamilyGets the fontSizeGets the fontStyleboolean
Gets the displayboolean
Gets the reversevoid
setDisplay
(boolean display) Sets the displayvoid
void
setFontColor
(String fontColor) Sets the fontColorvoid
setFontFamily
(String fontFamily) Sets the fontFamilyvoid
setFontSize
(Number fontSize) Sets the fontSizevoid
setFontStyle
(String fontStyle) Sets the fontStylevoid
setReverse
(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
-