1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.chartjs;
20
21 import java.io.Serializable;
22 import java.util.List;
23
24
25
26
27
28 public abstract class BaseDataSet implements Serializable {
29
30 private static final long serialVersionUID = 1581171902504828797L;
31
32 private String backgroundColor = "rgba(220,220,220,0.5)";
33
34 private String borderColor = "rgba(220,220,220,1)";
35
36
37 private final List<? extends Number> data;
38
39
40
41
42
43
44 public BaseDataSet(final List<? extends Number> data) {
45 this.data = data;
46 }
47
48 public String getBackgroundColor() {
49 return backgroundColor;
50 }
51
52 public BaseDataSet setBackgroundColor(final String backgroundColor) {
53 this.backgroundColor = backgroundColor;
54 return this;
55 }
56
57 public String getBorderColor() {
58 return borderColor;
59 }
60
61 public BaseDataSet setBorderColor(final String borderColor) {
62 this.borderColor = borderColor;
63 return this;
64 }
65
66 public List<? extends Number> getData() {
67 return data;
68 }
69 }