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
public class AxesTicks extends Object implements Serializable
The tick configuration is nested under the scale configuration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AxesTicks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode()
Write the common ticks options of axesString
getFontColor()
Gets the fontColorString
getFontFamily()
Gets the fontFamilyNumber
getFontSize()
Gets the fontSizeString
getFontStyle()
Gets the fontStyleboolean
isDisplay()
Gets the displayboolean
isReverse()
Gets the reversevoid
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
setReverse(boolean reverse)
Sets the reverse
-
-
-
Method Detail
-
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
public String getFontColor()
Gets the fontColor- Returns:
- fontColor
-
setFontColor
public void setFontColor(String fontColor)
Sets the fontColor- Parameters:
fontColor
- Font color for tick labels.
-
getFontFamily
public String getFontFamily()
Gets the fontFamily- Returns:
- fontFamily
-
setFontFamily
public void setFontFamily(String fontFamily)
Sets the fontFamily- Parameters:
fontFamily
- Font family for the tick labels.
-
getFontSize
public Number getFontSize()
Gets the fontSize- Returns:
- fontSize
-
setFontSize
public void setFontSize(Number fontSize)
Sets the fontSize- Parameters:
fontSize
- Font size for the tick labels.
-
getFontStyle
public String getFontStyle()
Gets the fontStyle- Returns:
- fontStyle
-
setFontStyle
public void setFontStyle(String fontStyle)
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.
-
encode
public String encode() throws IOException
Write the common ticks options of axes- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-