Class ElementsRectangle

java.lang.Object
org.primefaces.model.charts.optionconfig.elements.ElementsRectangle
All Implemented Interfaces:
Serializable

public class ElementsRectangle extends Object implements Serializable
Rectangle elements are used to represent the bars in a bar chart.
See Also:
  • Constructor Details

    • ElementsRectangle

      public ElementsRectangle()
  • Method Details

    • getBackgroundColor

      public String getBackgroundColor()
      Gets the backgroundColor
      Returns:
      backgroundColor
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
      Sets the backgroundColor
      Parameters:
      backgroundColor - Bar fill color.
    • getBorderWidth

      public Number getBorderWidth()
      Gets the borderWidth
      Returns:
      borderWidth
    • setBorderWidth

      public void setBorderWidth(Number borderWidth)
      Sets the borderWidth
      Parameters:
      borderWidth - Bar stroke width.
    • getBorderColor

      public String getBorderColor()
      Gets the borderColor
      Returns:
      borderColor
    • setBorderColor

      public void setBorderColor(String borderColor)
      Sets the borderColor
      Parameters:
      borderColor - Bar stroke color.
    • getBorderSkipped

      public String getBorderSkipped()
      Gets the borderSkipped
      Returns:
      borderSkipped
    • setBorderSkipped

      public void setBorderSkipped(String borderSkipped)
      Sets the borderSkipped
      Parameters:
      borderSkipped - Skipped (excluded) border: 'bottom', 'left', 'top' or 'right'.
    • encode

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