Package software.xdev.chartjs.model.data
Class Data<D extends Data<D,T>,T extends Dataset<T,?>>
java.lang.Object
software.xdev.chartjs.model.data.Data<D,T>
- Direct Known Subclasses:
BarData
,BubbleData
,DoughnutData
,LineData
,PieData
,PolarData
,RadarData
,ScatterData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataset
(T dataset) Adds the label to the backing label listAdds the labels to the backing label listRemoves all labels from the backing listprotected D
self()
setDatasets
(Collection<T> datasets) Sets the backing label list, replacing any labels previously added or setsetLabels
(Collection<String> labels) Sets the backing label list, replacing any labels previously added or set
-
Constructor Details
-
Data
public Data()
-
-
Method Details
-
getLabels
- Returns:
- unmodifiable list of all labels, never
null
-
setLabels
Sets the backing label list, replacing any labels previously added or set- Returns:
- this object to allow method chaining
-
setLabels
Sets the backing label list, replacing any labels previously added or set- Returns:
- this object to allow method chaining
-
clearLabels
Removes all labels from the backing list- Returns:
- this object to allow method chaining
-
addLabel
Adds the label to the backing label list- Returns:
- this object to allow method chaining
-
addLabels
Adds the labels to the backing label list- Returns:
- this object to allow method chaining
-
getDatasets
- Returns:
- unmodifiable list of all datasets, never
null
-
setDatasets
- Returns:
- this object to allow method chaining
-
addDataset
- Returns:
- this object to allow method chaining
-
self
-