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:
  • 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

      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.
    • getFont

      public ChartFont getFont()
    • setFont

      public void setFont(ChartFont font)
    • 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