Class ChartFont

java.lang.Object
org.primefaces.model.charts.ChartFont
All Implemented Interfaces:
Serializable

public class ChartFont extends Object implements Serializable
Chart Font representation.
See Also:
  • Constructor Details

    • ChartFont

      public ChartFont()
  • Method Details

    • getFamily

      public String getFamily()
    • setFamily

      public void setFamily(String family)
    • getSize

      public Number getSize()
    • setSize

      public void setSize(Number size)
    • getStyle

      public String getStyle()
    • setStyle

      public void setStyle(String style)
    • getWeight

      public String getWeight()
    • setWeight

      public void setWeight(String weight)
    • getLineHeight

      public Object getLineHeight()
    • setLineHeight

      public void setLineHeight(Object lineHeight)
    • shouldRender

      public boolean shouldRender()
      Detect if any 1 field is set we should render.
      Returns:
      true if should be rendered
    • write

      public void write(FastStringWriter writer) throws IOException
      Write this font out to the writer.
      Parameters:
      writer - the writer to print to.
      Throws:
      IOException - If an I/O error occurs
    • write

      public void write(FastStringWriter writer, String name, boolean hasComma) throws IOException
      Write this font out to the writer.
      Parameters:
      writer - the writer to print to.
      Throws:
      IOException - If an I/O error occurs
    • encode

      public String encode() throws IOException
      Write the options of font
      Returns:
      options as JSON object
      Throws:
      IOException - If an I/O error occurs