public interface HasTimeSeriesItems extends HasDataPoints
Modifier and Type | Method and Description |
---|---|
static void |
checkTimeSeriesItems(List<DataPoint> datapoints)
Checks if the list of data points, passed as argument, have got the properties to be time series items (time and Y value).
If not, a IllegalArgumentException will be thrown. |
default List<Double> |
getData()
Throws an exception because not available.
|
default List<Double> |
getData(boolean binding)
Throws an exception because not available.
|
default List<TimeSeriesItem> |
getTimeSeriesData()
Returns the data property of a dataset for a chart is specified as an array of time series items.
|
default List<TimeSeriesItem> |
getTimeSeriesData(boolean binding)
Returns the data property of a dataset for a chart is specified as an array of time series items
|
static boolean |
isTimeSeriesItem(DataPoint datapoint)
Returns
true if the data point, passed as argument, has got the properties to be a time series item (time and Y value). |
default void |
setData(double... values)
Throws an exception because not available.
|
default void |
setData(List<Double> values)
Throws an exception because not available.
|
default void |
setDataPoints(DataPoint... datapoints)
Sets the data property of a dataset for a chart is specified as an array of data points.
|
default 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 |
setTimeSeriesData(List<TimeSeriesItem> items)
Sets the data property of a dataset for a chart is specified as an array of time series items.
|
default void |
setTimeSeriesData(TimeSeriesItem... items)
Sets the data property of a dataset for a chart is specified as an array of time series items.
|
getDataPoints, getDataPoints
getDataset
static boolean isTimeSeriesItem(DataPoint datapoint)
true
if the data point, passed as argument, has got the properties to be a time series item (time and Y value).datapoint
- data point instance to be checkedtrue
if the data point, passed as argument, has got the properties to be a time series item (time and Y value)static void checkTimeSeriesItems(List<DataPoint> datapoints)
IllegalArgumentException
will be thrown.datapoints
- list of data points to be checkeddefault void setData(double... values)
values
- ignored because will throw an exceptiondefault void setData(List<Double> values)
values
- ignored because will throw an exceptiondefault List<Double> getData()
default List<Double> getData(boolean binding)
binding
- ignored because will throw an exceptiondefault void setDataPoints(DataPoint... datapoints)
setDataPoints
in interface HasDataPoints
datapoints
- an array of data pointsdefault void setDataPoints(List<DataPoint> datapoints)
setDataPoints
in interface HasDataPoints
datapoints
- a list of data pointsdefault void setTimeSeriesData(TimeSeriesItem... items)
items
- an array of time series itemsdefault void setTimeSeriesData(List<TimeSeriesItem> items)
items
- a list of time series itemsdefault List<TimeSeriesItem> getTimeSeriesData()
DataType.POINTS
.default List<TimeSeriesItem> getTimeSeriesData(boolean binding)
binding
- if true
binds the new array list in the containerDataType.POINTS
.