18
18
import java .util .ArrayList ;
19
19
import java .util .List ;
20
20
21
- import software .xdev .chartjs .model .color .Color ;
22
21
import software .xdev .chartjs .model .enums .BorderCapStyle ;
23
22
import software .xdev .chartjs .model .enums .BorderJoinStyle ;
24
23
import software .xdev .chartjs .model .enums .PointStyle ;
@@ -34,11 +33,11 @@ public abstract class PointDataset<T extends Dataset<T, O>, O> extends Dataset<T
34
33
35
34
private Float lineTension ;
36
35
37
- private Color backgroundColor ;
36
+ private Object backgroundColor ;
38
37
39
38
private Integer borderWidth ;
40
39
41
- private Color borderColor ;
40
+ private Object borderColor ;
42
41
43
42
private BorderCapStyle borderCapStyle ;
44
43
@@ -48,9 +47,9 @@ public abstract class PointDataset<T extends Dataset<T, O>, O> extends Dataset<T
48
47
49
48
private BorderJoinStyle borderJoinStyle ;
50
49
51
- private final List <Color > pointBorderColor = new OptionalArray <>();
50
+ private final List <Object > pointBorderColor = new OptionalArray <>();
52
51
53
- private final List <Color > pointBackgroundColor = new OptionalArray <>();
52
+ private final List <Object > pointBackgroundColor = new OptionalArray <>();
54
53
55
54
private final List <Integer > pointBorderWidth = new OptionalArray <>();
56
55
@@ -60,9 +59,9 @@ public abstract class PointDataset<T extends Dataset<T, O>, O> extends Dataset<T
60
59
61
60
private final List <Integer > pointHitRadius = new OptionalArray <>();
62
61
63
- private final List <Color > pointHoverBackgroundColor = new OptionalArray <>();
62
+ private final List <Object > pointHoverBackgroundColor = new OptionalArray <>();
64
63
65
- private final List <Color > pointHoverBorderColor = new OptionalArray <>();
64
+ private final List <Object > pointHoverBorderColor = new OptionalArray <>();
66
65
67
66
private final List <Integer > pointHoverBorderWidth = new OptionalArray <>();
68
67
@@ -117,17 +116,17 @@ public T setLineTension(final Float lineTension)
117
116
}
118
117
119
118
/**
120
- * @see #setBackgroundColor(Color )
119
+ * @see #setBackgroundColor(Object )
121
120
*/
122
- public Color getBackgroundColor ()
121
+ public Object getBackgroundColor ()
123
122
{
124
123
return this .backgroundColor ;
125
124
}
126
125
127
126
/**
128
127
* The fill color under the line.
129
128
*/
130
- public T setBackgroundColor (final Color backgroundColor )
129
+ public T setBackgroundColor (final Object backgroundColor )
131
130
{
132
131
this .backgroundColor = backgroundColor ;
133
132
return this .self ();
@@ -151,17 +150,17 @@ public T setBorderWidth(final Integer borderWidth)
151
150
}
152
151
153
152
/**
154
- * @see #setBorderColor(Color )
153
+ * @see #setBorderColor(Object )
155
154
*/
156
- public Color getBorderColor ()
155
+ public Object getBorderColor ()
157
156
{
158
157
return this .borderColor ;
159
158
}
160
159
161
160
/**
162
161
* The color of the line.
163
162
*/
164
- public T setBorderColor (final Color borderColor )
163
+ public T setBorderColor (final Object borderColor )
165
164
{
166
165
this .borderColor = borderColor ;
167
166
return this .self ();
@@ -275,15 +274,15 @@ public T setBorderJoinStyle(final BorderJoinStyle borderJoinStyle)
275
274
/**
276
275
* @see #setPointBorderColor(List)
277
276
*/
278
- public List <Color > getPointBorderColor ()
277
+ public List <Object > getPointBorderColor ()
279
278
{
280
279
return this .pointBorderColor ;
281
280
}
282
281
283
282
/**
284
283
* @see #setPointBorderColor(List)
285
284
*/
286
- public T addPointBorderColor (final Color pointBorderColor )
285
+ public T addPointBorderColor (final Object pointBorderColor )
287
286
{
288
287
this .pointBorderColor .add (pointBorderColor );
289
288
return this .self ();
@@ -292,7 +291,7 @@ public T addPointBorderColor(final Color pointBorderColor)
292
291
/**
293
292
* The border color for points.
294
293
*/
295
- public T setPointBorderColor (final List <Color > pointBorderColor )
294
+ public T setPointBorderColor (final List <Object > pointBorderColor )
296
295
{
297
296
this .pointBorderColor .clear ();
298
297
if (pointBorderColor != null )
@@ -305,15 +304,15 @@ public T setPointBorderColor(final List<Color> pointBorderColor)
305
304
/**
306
305
* @see #setPointBackgroundColor(List)
307
306
*/
308
- public List <Color > getPointBackgroundColor ()
307
+ public List <Object > getPointBackgroundColor ()
309
308
{
310
309
return this .pointBackgroundColor ;
311
310
}
312
311
313
312
/**
314
313
* @see #setPointBackgroundColor(List)
315
314
*/
316
- public T addPointBackgroundColor (final Color pointBackgroundColor )
315
+ public T addPointBackgroundColor (final Object pointBackgroundColor )
317
316
{
318
317
this .pointBackgroundColor .add (pointBackgroundColor );
319
318
return this .self ();
@@ -322,7 +321,7 @@ public T addPointBackgroundColor(final Color pointBackgroundColor)
322
321
/**
323
322
* The fill color for points
324
323
*/
325
- public T setPointBackgroundColor (final List <Color > pointBackgroundColor )
324
+ public T setPointBackgroundColor (final List <Object > pointBackgroundColor )
326
325
{
327
326
this .pointBackgroundColor .clear ();
328
327
if (pointBackgroundColor != null )
@@ -455,15 +454,15 @@ public T setPointHitRadius(final List<Integer> pointHitRadius)
455
454
/**
456
455
* @see #setPointHoverBackgroundColor(List)
457
456
*/
458
- public List <Color > getPointHoverBackgroundColor ()
457
+ public List <Object > getPointHoverBackgroundColor ()
459
458
{
460
459
return this .pointHoverBackgroundColor ;
461
460
}
462
461
463
462
/**
464
463
* @see #setPointHoverBackgroundColor(List)
465
464
*/
466
- public T addPointHoverBackgroundColor (final Color pointHoverBackgroundColor )
465
+ public T addPointHoverBackgroundColor (final Object pointHoverBackgroundColor )
467
466
{
468
467
this .pointHoverBackgroundColor .add (pointHoverBackgroundColor );
469
468
return this .self ();
@@ -472,7 +471,7 @@ public T addPointHoverBackgroundColor(final Color pointHoverBackgroundColor)
472
471
/**
473
472
* Point background color when hovered
474
473
*/
475
- public T setPointHoverBackgroundColor (final List <Color > pointHoverBackgroundColor )
474
+ public T setPointHoverBackgroundColor (final List <Object > pointHoverBackgroundColor )
476
475
{
477
476
this .pointHoverBackgroundColor .clear ();
478
477
if (pointHoverBackgroundColor != null )
@@ -485,15 +484,15 @@ public T setPointHoverBackgroundColor(final List<Color> pointHoverBackgroundColo
485
484
/**
486
485
* @see #setPointHoverBorderColor(List)
487
486
*/
488
- public List <Color > getPointHoverBorderColor ()
487
+ public List <Object > getPointHoverBorderColor ()
489
488
{
490
489
return this .pointHoverBorderColor ;
491
490
}
492
491
493
492
/**
494
493
* @see #setPointHoverBorderColor(List)
495
494
*/
496
- public T addPointHoverBorderColor (final Color pointHoverBorderColor )
495
+ public T addPointHoverBorderColor (final Object pointHoverBorderColor )
497
496
{
498
497
this .pointHoverBorderColor .add (pointHoverBorderColor );
499
498
return this .self ();
@@ -502,7 +501,7 @@ public T addPointHoverBorderColor(final Color pointHoverBorderColor)
502
501
/**
503
502
* Point border color when hovered
504
503
*/
505
- public T setPointHoverBorderColor (final List <Color > pointHoverBorderColor )
504
+ public T setPointHoverBorderColor (final List <Object > pointHoverBorderColor )
506
505
{
507
506
this .pointHoverBorderColor .clear ();
508
507
if (pointHoverBorderColor != null )
0 commit comments