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 ChartData
getData()
Gets the data to create dataSetsLineChartOptions
getOptions()
Gets the configuration optionsString
getType()
Gets the typevoid
setData(ChartData data)
Sets the data to create dataSetsvoid
setOptions(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:
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 LineChartOptions getOptions()
Gets the configuration options- Specified by:
getOptions
in classChartModel
- Returns:
- options
-
setOptions
public void setOptions(LineChartOptions options)
Sets the configuration options- Parameters:
options
- TheLineChartOptions
object
-
-