Class BarCorner

java.lang.Object
org.primefaces.model.charts.bar.BarCorner

public class BarCorner extends Object
Set the corners of bars in charts as per the Chartjs documentation
  • Constructor Details

    • BarCorner

      public BarCorner()
  • Method Details

    • getTopLeft

      public int getTopLeft()
      Get the top left corner radius in pixel
      Returns:
      the radius
    • setTopLeft

      public void setTopLeft(int topLeft)
      Set the top left corner radius in pixel
      Parameters:
      topLeft - the radius
    • getBottomLeft

      public int getBottomLeft()
      Get the bottom left corner radius in pixel
      Returns:
      the radius
    • setBottomLeft

      public void setBottomLeft(int bottomLeft)
      Set the bottom left corner radius in pixel
      Parameters:
      bottomLeft - the radius
    • getTopRight

      public int getTopRight()
      Get the top right corner radius in pixel
      Returns:
      the radius
    • setTopRight

      public void setTopRight(int topRight)
      Get the top right corner radius in pixel
      Parameters:
      topRight - the radius
    • getBottomRight

      public int getBottomRight()
      Get the bottom right corner radius in pixel
      Returns:
      the radius
    • setBottomRight

      public void setBottomRight(int bottomRight)
      Set the bottom right corner radius in pixel
      Parameters:
      bottomRight - the radius
    • encode

      public void encode(FastStringWriter fsw) throws IOException
      encodes and writes the object
      Parameters:
      fsw - the writer in which we send the encoded value
      Throws:
      IOException - on error writing data