1818import java .util .ArrayList ;
1919import java .util .List ;
2020
21- import software .xdev .chartjs .model .color .Color ;
2221import software .xdev .chartjs .model .enums .BorderCapStyle ;
2322import software .xdev .chartjs .model .enums .BorderJoinStyle ;
2423import software .xdev .chartjs .model .enums .PointStyle ;
@@ -34,11 +33,11 @@ public abstract class PointDataset<T extends Dataset<T, O>, O> extends Dataset<T
3433
3534 private Float lineTension ;
3635
37- private Color backgroundColor ;
36+ private Object backgroundColor ;
3837
3938 private Integer borderWidth ;
4039
41- private Color borderColor ;
40+ private Object borderColor ;
4241
4342 private BorderCapStyle borderCapStyle ;
4443
@@ -48,9 +47,9 @@ public abstract class PointDataset<T extends Dataset<T, O>, O> extends Dataset<T
4847
4948 private BorderJoinStyle borderJoinStyle ;
5049
51- private final List <Color > pointBorderColor = new OptionalArray <>();
50+ private final List <Object > pointBorderColor = new OptionalArray <>();
5251
53- private final List <Color > pointBackgroundColor = new OptionalArray <>();
52+ private final List <Object > pointBackgroundColor = new OptionalArray <>();
5453
5554 private final List <Integer > pointBorderWidth = new OptionalArray <>();
5655
@@ -60,9 +59,9 @@ public abstract class PointDataset<T extends Dataset<T, O>, O> extends Dataset<T
6059
6160 private final List <Integer > pointHitRadius = new OptionalArray <>();
6261
63- private final List <Color > pointHoverBackgroundColor = new OptionalArray <>();
62+ private final List <Object > pointHoverBackgroundColor = new OptionalArray <>();
6463
65- private final List <Color > pointHoverBorderColor = new OptionalArray <>();
64+ private final List <Object > pointHoverBorderColor = new OptionalArray <>();
6665
6766 private final List <Integer > pointHoverBorderWidth = new OptionalArray <>();
6867
@@ -117,17 +116,17 @@ public T setLineTension(final Float lineTension)
117116 }
118117
119118 /**
120- * @see #setBackgroundColor(Color )
119+ * @see #setBackgroundColor(Object )
121120 */
122- public Color getBackgroundColor ()
121+ public Object getBackgroundColor ()
123122 {
124123 return this .backgroundColor ;
125124 }
126125
127126 /**
128127 * The fill color under the line.
129128 */
130- public T setBackgroundColor (final Color backgroundColor )
129+ public T setBackgroundColor (final Object backgroundColor )
131130 {
132131 this .backgroundColor = backgroundColor ;
133132 return this .self ();
@@ -151,17 +150,17 @@ public T setBorderWidth(final Integer borderWidth)
151150 }
152151
153152 /**
154- * @see #setBorderColor(Color )
153+ * @see #setBorderColor(Object )
155154 */
156- public Color getBorderColor ()
155+ public Object getBorderColor ()
157156 {
158157 return this .borderColor ;
159158 }
160159
161160 /**
162161 * The color of the line.
163162 */
164- public T setBorderColor (final Color borderColor )
163+ public T setBorderColor (final Object borderColor )
165164 {
166165 this .borderColor = borderColor ;
167166 return this .self ();
@@ -275,15 +274,15 @@ public T setBorderJoinStyle(final BorderJoinStyle borderJoinStyle)
275274 /**
276275 * @see #setPointBorderColor(List)
277276 */
278- public List <Color > getPointBorderColor ()
277+ public List <Object > getPointBorderColor ()
279278 {
280279 return this .pointBorderColor ;
281280 }
282281
283282 /**
284283 * @see #setPointBorderColor(List)
285284 */
286- public T addPointBorderColor (final Color pointBorderColor )
285+ public T addPointBorderColor (final Object pointBorderColor )
287286 {
288287 this .pointBorderColor .add (pointBorderColor );
289288 return this .self ();
@@ -292,7 +291,7 @@ public T addPointBorderColor(final Color pointBorderColor)
292291 /**
293292 * The border color for points.
294293 */
295- public T setPointBorderColor (final List <Color > pointBorderColor )
294+ public T setPointBorderColor (final List <Object > pointBorderColor )
296295 {
297296 this .pointBorderColor .clear ();
298297 if (pointBorderColor != null )
@@ -305,15 +304,15 @@ public T setPointBorderColor(final List<Color> pointBorderColor)
305304 /**
306305 * @see #setPointBackgroundColor(List)
307306 */
308- public List <Color > getPointBackgroundColor ()
307+ public List <Object > getPointBackgroundColor ()
309308 {
310309 return this .pointBackgroundColor ;
311310 }
312311
313312 /**
314313 * @see #setPointBackgroundColor(List)
315314 */
316- public T addPointBackgroundColor (final Color pointBackgroundColor )
315+ public T addPointBackgroundColor (final Object pointBackgroundColor )
317316 {
318317 this .pointBackgroundColor .add (pointBackgroundColor );
319318 return this .self ();
@@ -322,7 +321,7 @@ public T addPointBackgroundColor(final Color pointBackgroundColor)
322321 /**
323322 * The fill color for points
324323 */
325- public T setPointBackgroundColor (final List <Color > pointBackgroundColor )
324+ public T setPointBackgroundColor (final List <Object > pointBackgroundColor )
326325 {
327326 this .pointBackgroundColor .clear ();
328327 if (pointBackgroundColor != null )
@@ -455,15 +454,15 @@ public T setPointHitRadius(final List<Integer> pointHitRadius)
455454 /**
456455 * @see #setPointHoverBackgroundColor(List)
457456 */
458- public List <Color > getPointHoverBackgroundColor ()
457+ public List <Object > getPointHoverBackgroundColor ()
459458 {
460459 return this .pointHoverBackgroundColor ;
461460 }
462461
463462 /**
464463 * @see #setPointHoverBackgroundColor(List)
465464 */
466- public T addPointHoverBackgroundColor (final Color pointHoverBackgroundColor )
465+ public T addPointHoverBackgroundColor (final Object pointHoverBackgroundColor )
467466 {
468467 this .pointHoverBackgroundColor .add (pointHoverBackgroundColor );
469468 return this .self ();
@@ -472,7 +471,7 @@ public T addPointHoverBackgroundColor(final Color pointHoverBackgroundColor)
472471 /**
473472 * Point background color when hovered
474473 */
475- public T setPointHoverBackgroundColor (final List <Color > pointHoverBackgroundColor )
474+ public T setPointHoverBackgroundColor (final List <Object > pointHoverBackgroundColor )
476475 {
477476 this .pointHoverBackgroundColor .clear ();
478477 if (pointHoverBackgroundColor != null )
@@ -485,15 +484,15 @@ public T setPointHoverBackgroundColor(final List<Color> pointHoverBackgroundColo
485484 /**
486485 * @see #setPointHoverBorderColor(List)
487486 */
488- public List <Color > getPointHoverBorderColor ()
487+ public List <Object > getPointHoverBorderColor ()
489488 {
490489 return this .pointHoverBorderColor ;
491490 }
492491
493492 /**
494493 * @see #setPointHoverBorderColor(List)
495494 */
496- public T addPointHoverBorderColor (final Color pointHoverBorderColor )
495+ public T addPointHoverBorderColor (final Object pointHoverBorderColor )
497496 {
498497 this .pointHoverBorderColor .add (pointHoverBorderColor );
499498 return this .self ();
@@ -502,7 +501,7 @@ public T addPointHoverBorderColor(final Color pointHoverBorderColor)
502501 /**
503502 * Point border color when hovered
504503 */
505- public T setPointHoverBorderColor (final List <Color > pointHoverBorderColor )
504+ public T setPointHoverBorderColor (final List <Object > pointHoverBorderColor )
506505 {
507506 this .pointHoverBorderColor .clear ();
508507 if (pointHoverBorderColor != null )
0 commit comments