Package org.primefaces.model.charts.pie
Class PieChartModel
- java.lang.Object
-
- org.primefaces.model.charts.ChartModel
-
- org.primefaces.model.charts.pie.PieChartModel
-
- All Implemented Interfaces:
Serializable
public class PieChartModel extends ChartModel
Defines the pie model used to create pie chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PieChartModel()
PieChartModel(ChartData data, PieChartOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartData
getData()
Gets the data to create dataSetsPieChartOptions
getOptions()
Gets the configuration optionsString
getType()
Gets the typevoid
setData(ChartData data)
Sets the data to create dataSetsvoid
setOptions(PieChartOptions options)
Sets the configuration options-
Methods inherited from class org.primefaces.model.charts.ChartModel
getExtender, setExtender
-
-
-
-
Constructor Detail
-
PieChartModel
public PieChartModel()
-
PieChartModel
public PieChartModel(ChartData data, PieChartOptions options)
-
-
Method Detail
-
getType
public String getType()
Gets the type- Specified by:
getType
in classChartModel
- Returns:
- type of current chart
-
getData
public ChartData getData()
Gets the data to create dataSets- Specified by:
getData
in classChartModel
- Returns:
- data
-
setData
public void setData(ChartData data)
Sets the data to create dataSets- Parameters:
data
- TheChartData
object
-
getOptions
public PieChartOptions getOptions()
Gets the configuration options- Specified by:
getOptions
in classChartModel
- Returns:
- options
-
setOptions
public void setOptions(PieChartOptions options)
Sets the configuration options- Parameters:
options
- ThePieChartOptions
object
-
-