Package org.pepstock.charba.client.data
Interface HasDataPoints
-
- All Superinterfaces:
HasDataset
- All Known Subinterfaces:
HasTimeSeriesItems
- All Known Implementing Classes:
AreaDataset
,BarDataset
,BubbleDataset
,BubbleMapDataset
,ChoroplethDataset
,HorizontalBarDataset
,LineDataset
,RegressionDataset
,ScatterDataset
,StackedAreaDataset
,StackedBarDataset
,StackedHorizontalBarDataset
,StackedLineDataset
,TimeSeriesBarDataset
,TimeSeriesHorizontalBarDataset
,TimeSeriesLineDataset
,VerticalLineDataset
public interface HasDataPoints extends HasDataset
Interface to define if a dataset can contains data points.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<DataPoint>
getDataPoints()
Returns the data property of a dataset for a chart is specified as an array of data pointsdefault List<DataPoint>
getDataPoints(boolean binding)
Returns the data property of a dataset for a chart is specified as an array of data pointsdefault void
setDataPoints(List<DataPoint> datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.default void
setDataPoints(DataPoint... datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.-
Methods inherited from interface org.pepstock.charba.client.data.HasDataset
getDataset
-
-
-
-
Method Detail
-
setDataPoints
default void setDataPoints(DataPoint... datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.- Parameters:
datapoints
- an array of data points
-
setDataPoints
default void setDataPoints(List<DataPoint> datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.- Parameters:
datapoints
- a list of data points
-
getDataPoints
default List<DataPoint> getDataPoints()
Returns the data property of a dataset for a chart is specified as an array of data points- Returns:
- a list of data points or an empty list of data points if the data type is not
DataType.POINTS
.
-
getDataPoints
default List<DataPoint> getDataPoints(boolean binding)
Returns the data property of a dataset for a chart is specified as an array of data points- Parameters:
binding
- iftrue
binds the new array list in the container- Returns:
- a list of data points or an empty list of data points if the data type is not
DataType.POINTS
.
-
-