Class ElementsArc
- java.lang.Object
-
- org.primefaces.model.charts.optionconfig.elements.ElementsArc
-
- All Implemented Interfaces:
Serializable
public class ElementsArc extends Object implements Serializable
Arcs are used in the polar area, doughnut and pie charts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementsArc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Write the arc options of ElementsStringgetBackgroundColor()Gets the backgroundColorStringgetBorderColor()Gets the borderColorNumbergetBorderWidth()Gets the borderWidthvoidsetBackgroundColor(String backgroundColor)Sets the backgroundColorvoidsetBorderColor(String borderColor)Sets the borderColorvoidsetBorderWidth(Number borderWidth)Sets the borderWidth
-
-
-
Method Detail
-
getBackgroundColor
public String getBackgroundColor()
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the backgroundColor- Parameters:
backgroundColor- Arc fill color.
-
getBorderColor
public String getBorderColor()
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the borderColor- Parameters:
borderColor- Arc stroke color.
-
getBorderWidth
public Number getBorderWidth()
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the borderWidth- Parameters:
borderWidth- Arc stroke width.
-
encode
public String encode() throws IOException
Write the arc options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-