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 ChartDatagetData()Gets the data to create dataSetsPieChartOptionsgetOptions()Gets the configuration optionsStringgetType()Gets the typevoidsetData(ChartData data)Sets the data to create dataSetsvoidsetOptions(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:
getTypein classChartModel- Returns:
- type of current chart
-
getData
public ChartData getData()
Gets the data to create dataSets- Specified by:
getDatain classChartModel- Returns:
- data
-
setData
public void setData(ChartData data)
Sets the data to create dataSets- Parameters:
data- TheChartDataobject
-
getOptions
public PieChartOptions getOptions()
Gets the configuration options- Specified by:
getOptionsin classChartModel- Returns:
- options
-
setOptions
public void setOptions(PieChartOptions options)
Sets the configuration options- Parameters:
options- ThePieChartOptionsobject
-
-