Package org.primefaces.model.charts.line
Class LineChartModel
- java.lang.Object
-
- org.primefaces.model.charts.ChartModel
-
- org.primefaces.model.charts.line.LineChartModel
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ScatterChartModel
public class LineChartModel extends ChartModel
Defines the line model used to create line chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineChartModel()LineChartModel(ChartData data, LineChartOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartDatagetData()Gets the data to create dataSetsLineChartOptionsgetOptions()Gets the configuration optionsStringgetType()Gets the typevoidsetData(ChartData data)Sets the data to create dataSetsvoidsetOptions(LineChartOptions options)Sets the configuration options-
Methods inherited from class org.primefaces.model.charts.ChartModel
getExtender, setExtender
-
-
-
-
Constructor Detail
-
LineChartModel
public LineChartModel()
-
LineChartModel
public LineChartModel(ChartData data, LineChartOptions 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 LineChartOptions getOptions()
Gets the configuration options- Specified by:
getOptionsin classChartModel- Returns:
- options
-
setOptions
public void setOptions(LineChartOptions options)
Sets the configuration options- Parameters:
options- TheLineChartOptionsobject
-
-