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
22
23
24 public class LineChartOptions extends ChartOptions {
25
26 private static final long serialVersionUID = -5356780831848556616L;
27
28 private Boolean scaleShowHorizontalLines = true;
29
30 private Boolean scaleShowVerticalLines = true;
31
32 private Integer pointHitDetectionRadius = 20;
33
34 private String legendTemplate = "<ul class=\"<%=name.toLowerCase()%>-legend\">"
35 + "<% for (var i=0; i<datasets.length; i++){%><li>"
36 + "<span style=\"background-color:<%=datasets[i].strokeColor%>\"></span>"
37 + "<%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>";
38
39
40 private Boolean bezierCurve;
41
42
43 private Boolean pointDot;
44
45
46 private Integer pointDotRadius;
47
48
49 private Integer pointDotStrokeWidth;
50
51
52 private Boolean datasetStroke;
53
54
55 private Integer datasetStrokeWidth;
56
57
58 private Boolean datasetFill;
59
60 private Boolean showLine = true;
61
62 private Double tension = 0.0;
63
64 public Boolean getScaleShowHorizontalLines() {
65 return scaleShowHorizontalLines;
66 }
67
68 public void setScaleShowHorizontalLines(final Boolean scaleShowHorizontalLines) {
69 this.scaleShowHorizontalLines = scaleShowHorizontalLines;
70 }
71
72 public Boolean getScaleShowVerticalLines() {
73 return scaleShowVerticalLines;
74 }
75
76 public void setScaleShowVerticalLines(final Boolean scaleShowVerticalLines) {
77 this.scaleShowVerticalLines = scaleShowVerticalLines;
78 }
79
80 public Integer getPointHitDetectionRadius() {
81 return pointHitDetectionRadius;
82 }
83
84 public void setPointHitDetectionRadius(final Integer pointHitDetectionRadius) {
85 this.pointHitDetectionRadius = pointHitDetectionRadius;
86 }
87
88 public String getLegendTemplate() {
89 return legendTemplate;
90 }
91
92 public void setLegendTemplate(final String legendTemplate) {
93 this.legendTemplate = legendTemplate;
94 }
95
96
97
98
99
100
101 public Boolean getBezierCurve() {
102 return bezierCurve;
103 }
104
105
106
107
108
109
110 public void setBezierCurve(final Boolean bezierCurve) {
111 this.bezierCurve = bezierCurve;
112 }
113
114
115
116
117
118
119 public Boolean getPointDot() {
120 return pointDot;
121 }
122
123
124
125
126
127
128 public void setPointDot(final Boolean pointDot) {
129 this.pointDot = pointDot;
130 }
131
132
133
134
135
136
137 public Integer getPointDotRadius() {
138 return pointDotRadius;
139 }
140
141
142
143
144
145
146 public void setPointDotRadius(final Integer pointDotRadius) {
147 this.pointDotRadius = pointDotRadius;
148 }
149
150
151
152
153
154
155 public Integer getPointDotStrokeWidth() {
156 return pointDotStrokeWidth;
157 }
158
159
160
161
162
163
164 public void setPointDotStrokeWidth(final Integer pointDotStrokeWidth) {
165 this.pointDotStrokeWidth = pointDotStrokeWidth;
166 }
167
168
169
170
171
172
173 public Boolean getDatasetStroke() {
174 return datasetStroke;
175 }
176
177
178
179
180
181
182 public void setDatasetStroke(final Boolean datasetStroke) {
183 this.datasetStroke = datasetStroke;
184 }
185
186
187
188
189
190
191 public Integer getDatasetStrokeWidth() {
192 return datasetStrokeWidth;
193 }
194
195
196
197
198
199
200 public void setDatasetStrokeWidth(final Integer datasetStrokeWidth) {
201 this.datasetStrokeWidth = datasetStrokeWidth;
202 }
203
204
205
206
207
208
209 public Boolean getDatasetFill() {
210 return datasetFill;
211 }
212
213
214
215
216
217
218 public void setDatasetFill(final Boolean datasetFill) {
219 this.datasetFill = datasetFill;
220 }
221
222 public Boolean getShowLine() {
223 return showLine;
224 }
225
226 public void setShowLine(final Boolean showLine) {
227 this.showLine = showLine;
228 }
229
230 public Double getTension() {
231 return tension;
232 }
233
234 public void setTension(final Double tension) {
235 this.tension = tension;
236 }
237 }