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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(FastStringWriter fsw) encodes and writes the objectint
Get the bottom left corner radius in pixelint
Get the bottom right corner radius in pixelint
Get the top left corner radius in pixelint
Get the top right corner radius in pixelvoid
setBottomLeft
(int bottomLeft) Set the bottom left corner radius in pixelvoid
setBottomRight
(int bottomRight) Set the bottom right corner radius in pixelvoid
setTopLeft
(int topLeft) Set the top left corner radius in pixelvoid
setTopRight
(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
-