Class PolarAreaChartDataSet
- java.lang.Object
-
- org.primefaces.model.charts.ChartDataSet
-
- org.primefaces.model.charts.polar.PolarAreaChartDataSet
-
- All Implemented Interfaces:
Serializable
public class PolarAreaChartDataSet extends ChartDataSet
Used to provide DataSet objects to PolarArea chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolarAreaChartDataSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode()
Write the options of this dataSetList<String>
getBackgroundColor()
Gets the backgroundColorList<String>
getBorderColor()
Gets the borderColorList<Number>
getBorderWidth()
Gets the borderWidthList<Number>
getData()
Gets the list of data in this dataSetList<String>
getHoverBackgroundColor()
Gets the hoverBackgroundColorList<String>
getHoverBorderColor()
Gets the hoverBorderColorList<Number>
getHoverBorderWidth()
Gets the hoverBorderWidthvoid
setBackgroundColor(List<String> backgroundColor)
Sets the backgroundColorvoid
setBorderColor(List<String> borderColor)
Sets the borderColorvoid
setBorderWidth(List<Number> borderWidth)
Sets the borderWidthvoid
setData(List<Number> data)
Sets the list of data in this dataSetvoid
setHoverBackgroundColor(List<String> hoverBackgroundColor)
Sets the hoverBackgroundColorvoid
setHoverBorderColor(List<String> hoverBorderColor)
Sets the hoverBorderColorvoid
setHoverBorderWidth(List<Number> hoverBorderWidth)
Sets the hoverBorderWidth-
Methods inherited from class org.primefaces.model.charts.ChartDataSet
isHidden, setHidden
-
-
-
-
Method Detail
-
getData
public List<Number> getData()
Gets the list of data in this dataSet- Returns:
- List<Number> list of data
-
setData
public void setData(List<Number> data)
Sets the list of data in this dataSet- Parameters:
data
- List<Number> list of data
-
getBackgroundColor
public List<String> getBackgroundColor()
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
public void setBackgroundColor(List<String> backgroundColor)
Sets the backgroundColor- Parameters:
backgroundColor
- The fill color of the arcs in the dataset.
-
setBorderColor
public void setBorderColor(List<String> borderColor)
Sets the borderColor- Parameters:
borderColor
- The border color of the arcs in the dataset.
-
setBorderWidth
public void setBorderWidth(List<Number> borderWidth)
Sets the borderWidth- Parameters:
borderWidth
- The border width of the arcs in the dataset.
-
getHoverBackgroundColor
public List<String> getHoverBackgroundColor()
Gets the hoverBackgroundColor- Returns:
- hoverBackgroundColor
-
setHoverBackgroundColor
public void setHoverBackgroundColor(List<String> hoverBackgroundColor)
Sets the hoverBackgroundColor- Parameters:
hoverBackgroundColor
- The fill colour of the arcs when hovered.
-
getHoverBorderColor
public List<String> getHoverBorderColor()
Gets the hoverBorderColor- Returns:
- hoverBorderColor
-
setHoverBorderColor
public void setHoverBorderColor(List<String> hoverBorderColor)
Sets the hoverBorderColor- Parameters:
hoverBorderColor
- The stroke colour of the arcs when hovered.
-
getHoverBorderWidth
public List<Number> getHoverBorderWidth()
Gets the hoverBorderWidth- Returns:
- hoverBorderWidth
-
setHoverBorderWidth
public void setHoverBorderWidth(List<Number> hoverBorderWidth)
Sets the hoverBorderWidth- Parameters:
hoverBorderWidth
- The stroke width of the arcs when hovered.
-
encode
public String encode() throws IOException
Write the options of this dataSet- Overrides:
encode
in classChartDataSet
- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-