Package org.primefaces.model.charts.bar
Class BarCorner
java.lang.Object
org.primefaces.model.charts.bar.BarCorner
Set the corners of bars in charts as per the
Chartjs documentation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(FastStringWriter fsw) encodes and writes the objectintGet the bottom left corner radius in pixelintGet the bottom right corner radius in pixelintGet the top left corner radius in pixelintGet the top right corner radius in pixelvoidsetBottomLeft(int bottomLeft) Set the bottom left corner radius in pixelvoidsetBottomRight(int bottomRight) Set the bottom right corner radius in pixelvoidsetTopLeft(int topLeft) Set the top left corner radius in pixelvoidsetTopRight(int topRight) Get the top right corner radius in pixel
-
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
encodes and writes the object- Parameters:
fsw- the writer in which we send the encoded value- Throws:
IOException- on error writing data
-