|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* This file is part of the highcharts-bundle package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) 2017 WEBEWEB |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble; |
|
13
|
|
|
|
|
14
|
|
|
use JsonSerializable; |
|
15
|
|
|
use WBW\Library\Core\Utility\Argument\ArrayUtility; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Highcharts data labels. |
|
19
|
|
|
* |
|
20
|
|
|
* @author webeweb <https://github.com/webeweb/> |
|
21
|
|
|
* @package WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble |
|
22
|
|
|
* @version 5.0.14 |
|
23
|
|
|
* @final |
|
24
|
|
|
*/ |
|
25
|
|
|
final class HighchartsDataLabels implements JsonSerializable { |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* Align. |
|
29
|
|
|
* |
|
30
|
|
|
* @var string |
|
31
|
|
|
*/ |
|
32
|
|
|
private $align = "center"; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* Allow overlap. |
|
36
|
|
|
* |
|
37
|
|
|
* @var boolean |
|
38
|
|
|
* @since 4.1.0 |
|
39
|
|
|
*/ |
|
40
|
|
|
private $allowOverlap = false; |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* Background color. |
|
44
|
|
|
* |
|
45
|
|
|
* @var string |
|
46
|
|
|
* @since 2.2.1 |
|
47
|
|
|
*/ |
|
48
|
|
|
private $backgroundColor; |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* Border color. |
|
52
|
|
|
* |
|
53
|
|
|
* @var string |
|
54
|
|
|
* @since 2.2.1 |
|
55
|
|
|
*/ |
|
56
|
|
|
private $borderColor; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* Border radius. |
|
60
|
|
|
* |
|
61
|
|
|
* @var integer |
|
62
|
|
|
* @since 2.2.1 |
|
63
|
|
|
*/ |
|
64
|
|
|
private $borderRadius = 0; |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* Border width. |
|
68
|
|
|
* |
|
69
|
|
|
* @var integer |
|
70
|
|
|
* @since 2.2.1 |
|
71
|
|
|
*/ |
|
72
|
|
|
private $borderWidth = 0; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* Class name. |
|
76
|
|
|
* |
|
77
|
|
|
* @var string |
|
78
|
|
|
* @since 5.0.0 |
|
79
|
|
|
*/ |
|
80
|
|
|
private $className; |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* Color. |
|
84
|
|
|
* |
|
85
|
|
|
* @var string |
|
86
|
|
|
*/ |
|
87
|
|
|
private $color; |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* Crop. |
|
91
|
|
|
* |
|
92
|
|
|
* @var boolean |
|
93
|
|
|
* @since 2.3.3 |
|
94
|
|
|
*/ |
|
95
|
|
|
private $crop = true; |
|
96
|
|
|
|
|
97
|
|
|
/** |
|
98
|
|
|
* Defer. |
|
99
|
|
|
* |
|
100
|
|
|
* @var boolean |
|
101
|
|
|
* @since 4.0 |
|
102
|
|
|
*/ |
|
103
|
|
|
private $defer = true; |
|
104
|
|
|
|
|
105
|
|
|
/** |
|
106
|
|
|
* Enabled. |
|
107
|
|
|
* |
|
108
|
|
|
* @var boolean |
|
109
|
|
|
*/ |
|
110
|
|
|
private $enabled = false; |
|
111
|
|
|
|
|
112
|
|
|
/** |
|
113
|
|
|
* Format. |
|
114
|
|
|
* |
|
115
|
|
|
* @var string |
|
116
|
|
|
* @since 3.0 |
|
117
|
|
|
*/ |
|
118
|
|
|
private $format = "{y}"; |
|
119
|
|
|
|
|
120
|
|
|
/** |
|
121
|
|
|
* Formatter. |
|
122
|
|
|
* |
|
123
|
|
|
* @var string |
|
124
|
|
|
*/ |
|
125
|
|
|
private $formatter; |
|
126
|
|
|
|
|
127
|
|
|
/** |
|
128
|
|
|
* Inside. |
|
129
|
|
|
* |
|
130
|
|
|
* @var boolean |
|
131
|
|
|
* @since 3.0 |
|
132
|
|
|
*/ |
|
133
|
|
|
private $inside; |
|
134
|
|
|
|
|
135
|
|
|
/** |
|
136
|
|
|
* Overflow. |
|
137
|
|
|
* |
|
138
|
|
|
* @var string |
|
139
|
|
|
* @since 3.0.6 |
|
140
|
|
|
*/ |
|
141
|
|
|
private $overflow = "justify"; |
|
142
|
|
|
|
|
143
|
|
|
/** |
|
144
|
|
|
* Padding. |
|
145
|
|
|
* |
|
146
|
|
|
* @var integer |
|
147
|
|
|
* @since 2.2.1 |
|
148
|
|
|
*/ |
|
149
|
|
|
private $padding = 5; |
|
150
|
|
|
|
|
151
|
|
|
/** |
|
152
|
|
|
* Rotation. |
|
153
|
|
|
* |
|
154
|
|
|
* @var integer |
|
155
|
|
|
*/ |
|
156
|
|
|
private $rotation = 0; |
|
157
|
|
|
|
|
158
|
|
|
/** |
|
159
|
|
|
* Shadow. |
|
160
|
|
|
* |
|
161
|
|
|
* @var boolean|array |
|
162
|
|
|
* @since 2.2.1 |
|
163
|
|
|
*/ |
|
164
|
|
|
private $shadow = false; |
|
165
|
|
|
|
|
166
|
|
|
/** |
|
167
|
|
|
* Shape. |
|
168
|
|
|
* |
|
169
|
|
|
* @var string |
|
170
|
|
|
* @since 4.1.2 |
|
171
|
|
|
*/ |
|
172
|
|
|
private $shape = "square"; |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* Style. |
|
176
|
|
|
* |
|
177
|
|
|
* @var array |
|
178
|
|
|
* @since 4.1.0 |
|
179
|
|
|
*/ |
|
180
|
|
|
private $style = ["color" => "contrast", "fontSize" => "11px", "fontWeight" => "bold", "textOutline" => "1px contrast"]; |
|
181
|
|
|
|
|
182
|
|
|
/** |
|
183
|
|
|
* Use HTML. |
|
184
|
|
|
* |
|
185
|
|
|
* @var boolean |
|
186
|
|
|
*/ |
|
187
|
|
|
private $useHTML = false; |
|
188
|
|
|
|
|
189
|
|
|
/** |
|
190
|
|
|
* Vertical align. |
|
191
|
|
|
* |
|
192
|
|
|
* @var string |
|
193
|
|
|
* @since 2.3.3 |
|
194
|
|
|
*/ |
|
195
|
|
|
private $verticalAlign; |
|
196
|
|
|
|
|
197
|
|
|
/** |
|
198
|
|
|
* X. |
|
199
|
|
|
* |
|
200
|
|
|
* @var integer |
|
201
|
|
|
*/ |
|
202
|
|
|
private $x = 0; |
|
203
|
|
|
|
|
204
|
|
|
/** |
|
205
|
|
|
* Y. |
|
206
|
|
|
* |
|
207
|
|
|
* @var integer |
|
208
|
|
|
*/ |
|
209
|
|
|
private $y = -6; |
|
210
|
|
|
|
|
211
|
|
|
/** |
|
212
|
|
|
* Z index. |
|
213
|
|
|
* |
|
214
|
|
|
* @var integer |
|
215
|
|
|
* @since 2.3.5 |
|
216
|
|
|
*/ |
|
217
|
|
|
private $zIndex = 6; |
|
218
|
|
|
|
|
219
|
|
|
/** |
|
220
|
|
|
* Constructor. |
|
221
|
|
|
* |
|
222
|
|
|
* @param boolean $ignoreDefaultValues Ignore the default values. |
|
223
|
|
|
*/ |
|
224
|
|
|
public function __construct($ignoreDefaultValues = true) { |
|
225
|
|
|
if (true === $ignoreDefaultValues) { |
|
226
|
|
|
$this->clear(); |
|
227
|
|
|
} |
|
228
|
|
|
} |
|
229
|
|
|
|
|
230
|
|
|
/** |
|
231
|
|
|
* Clear. |
|
232
|
|
|
* |
|
233
|
|
|
* @return void |
|
234
|
|
|
*/ |
|
235
|
|
|
public function clear() { |
|
236
|
|
|
|
|
237
|
|
|
// Clear the align. |
|
238
|
|
|
$this->align = null; |
|
239
|
|
|
|
|
240
|
|
|
// Clear the allow overlap. |
|
241
|
|
|
$this->allowOverlap = null; |
|
242
|
|
|
|
|
243
|
|
|
// Clear the background color. |
|
244
|
|
|
$this->backgroundColor = null; |
|
245
|
|
|
|
|
246
|
|
|
// Clear the border color. |
|
247
|
|
|
$this->borderColor = null; |
|
248
|
|
|
|
|
249
|
|
|
// Clear the border radius. |
|
250
|
|
|
$this->borderRadius = null; |
|
251
|
|
|
|
|
252
|
|
|
// Clear the border width. |
|
253
|
|
|
$this->borderWidth = null; |
|
254
|
|
|
|
|
255
|
|
|
// Clear the class name. |
|
256
|
|
|
$this->className = null; |
|
257
|
|
|
|
|
258
|
|
|
// Clear the color. |
|
259
|
|
|
$this->color = null; |
|
260
|
|
|
|
|
261
|
|
|
// Clear the crop. |
|
262
|
|
|
$this->crop = null; |
|
263
|
|
|
|
|
264
|
|
|
// Clear the defer. |
|
265
|
|
|
$this->defer = null; |
|
266
|
|
|
|
|
267
|
|
|
// Clear the enabled. |
|
268
|
|
|
$this->enabled = null; |
|
269
|
|
|
|
|
270
|
|
|
// Clear the format. |
|
271
|
|
|
$this->format = null; |
|
272
|
|
|
|
|
273
|
|
|
// Clear the formatter. |
|
274
|
|
|
$this->formatter = null; |
|
275
|
|
|
|
|
276
|
|
|
// Clear the inside. |
|
277
|
|
|
$this->inside = null; |
|
278
|
|
|
|
|
279
|
|
|
// Clear the overflow. |
|
280
|
|
|
$this->overflow = null; |
|
281
|
|
|
|
|
282
|
|
|
// Clear the padding. |
|
283
|
|
|
$this->padding = null; |
|
284
|
|
|
|
|
285
|
|
|
// Clear the rotation. |
|
286
|
|
|
$this->rotation = null; |
|
287
|
|
|
|
|
288
|
|
|
// Clear the shadow. |
|
289
|
|
|
$this->shadow = null; |
|
290
|
|
|
|
|
291
|
|
|
// Clear the shape. |
|
292
|
|
|
$this->shape = null; |
|
293
|
|
|
|
|
294
|
|
|
// Clear the style. |
|
295
|
|
|
$this->style = null; |
|
|
|
|
|
|
296
|
|
|
|
|
297
|
|
|
// Clear the use HTML. |
|
298
|
|
|
$this->useHTML = null; |
|
299
|
|
|
|
|
300
|
|
|
// Clear the vertical align. |
|
301
|
|
|
$this->verticalAlign = null; |
|
302
|
|
|
|
|
303
|
|
|
// Clear the x. |
|
304
|
|
|
$this->x = null; |
|
305
|
|
|
|
|
306
|
|
|
// Clear the y. |
|
307
|
|
|
$this->y = null; |
|
308
|
|
|
|
|
309
|
|
|
// Clear the z index. |
|
310
|
|
|
$this->zIndex = null; |
|
311
|
|
|
} |
|
312
|
|
|
|
|
313
|
|
|
/** |
|
314
|
|
|
* Get the align. |
|
315
|
|
|
* |
|
316
|
|
|
* @return string Returns the align. |
|
317
|
|
|
*/ |
|
318
|
|
|
public function getAlign() { |
|
319
|
|
|
return $this->align; |
|
320
|
|
|
} |
|
321
|
|
|
|
|
322
|
|
|
/** |
|
323
|
|
|
* Get the allow overlap. |
|
324
|
|
|
* |
|
325
|
|
|
* @return boolean Returns the allow overlap. |
|
326
|
|
|
*/ |
|
327
|
|
|
public function getAllowOverlap() { |
|
328
|
|
|
return $this->allowOverlap; |
|
329
|
|
|
} |
|
330
|
|
|
|
|
331
|
|
|
/** |
|
332
|
|
|
* Get the background color. |
|
333
|
|
|
* |
|
334
|
|
|
* @return string Returns the background color. |
|
335
|
|
|
*/ |
|
336
|
|
|
public function getBackgroundColor() { |
|
337
|
|
|
return $this->backgroundColor; |
|
338
|
|
|
} |
|
339
|
|
|
|
|
340
|
|
|
/** |
|
341
|
|
|
* Get the border color. |
|
342
|
|
|
* |
|
343
|
|
|
* @return string Returns the border color. |
|
344
|
|
|
*/ |
|
345
|
|
|
public function getBorderColor() { |
|
346
|
|
|
return $this->borderColor; |
|
347
|
|
|
} |
|
348
|
|
|
|
|
349
|
|
|
/** |
|
350
|
|
|
* Get the border radius. |
|
351
|
|
|
* |
|
352
|
|
|
* @return integer Returns the border radius. |
|
353
|
|
|
*/ |
|
354
|
|
|
public function getBorderRadius() { |
|
355
|
|
|
return $this->borderRadius; |
|
356
|
|
|
} |
|
357
|
|
|
|
|
358
|
|
|
/** |
|
359
|
|
|
* Get the border width. |
|
360
|
|
|
* |
|
361
|
|
|
* @return integer Returns the border width. |
|
362
|
|
|
*/ |
|
363
|
|
|
public function getBorderWidth() { |
|
364
|
|
|
return $this->borderWidth; |
|
365
|
|
|
} |
|
366
|
|
|
|
|
367
|
|
|
/** |
|
368
|
|
|
* Get the class name. |
|
369
|
|
|
* |
|
370
|
|
|
* @return string Returns the class name. |
|
371
|
|
|
*/ |
|
372
|
|
|
public function getClassName() { |
|
373
|
|
|
return $this->className; |
|
374
|
|
|
} |
|
375
|
|
|
|
|
376
|
|
|
/** |
|
377
|
|
|
* Get the color. |
|
378
|
|
|
* |
|
379
|
|
|
* @return string Returns the color. |
|
380
|
|
|
*/ |
|
381
|
|
|
public function getColor() { |
|
382
|
|
|
return $this->color; |
|
383
|
|
|
} |
|
384
|
|
|
|
|
385
|
|
|
/** |
|
386
|
|
|
* Get the crop. |
|
387
|
|
|
* |
|
388
|
|
|
* @return boolean Returns the crop. |
|
389
|
|
|
*/ |
|
390
|
|
|
public function getCrop() { |
|
391
|
|
|
return $this->crop; |
|
392
|
|
|
} |
|
393
|
|
|
|
|
394
|
|
|
/** |
|
395
|
|
|
* Get the defer. |
|
396
|
|
|
* |
|
397
|
|
|
* @return boolean Returns the defer. |
|
398
|
|
|
*/ |
|
399
|
|
|
public function getDefer() { |
|
400
|
|
|
return $this->defer; |
|
401
|
|
|
} |
|
402
|
|
|
|
|
403
|
|
|
/** |
|
404
|
|
|
* Get the enabled. |
|
405
|
|
|
* |
|
406
|
|
|
* @return boolean Returns the enabled. |
|
407
|
|
|
*/ |
|
408
|
|
|
public function getEnabled() { |
|
409
|
|
|
return $this->enabled; |
|
410
|
|
|
} |
|
411
|
|
|
|
|
412
|
|
|
/** |
|
413
|
|
|
* Get the format. |
|
414
|
|
|
* |
|
415
|
|
|
* @return string Returns the format. |
|
416
|
|
|
*/ |
|
417
|
|
|
public function getFormat() { |
|
418
|
|
|
return $this->format; |
|
419
|
|
|
} |
|
420
|
|
|
|
|
421
|
|
|
/** |
|
422
|
|
|
* Get the formatter. |
|
423
|
|
|
* |
|
424
|
|
|
* @return string Returns the formatter. |
|
425
|
|
|
*/ |
|
426
|
|
|
public function getFormatter() { |
|
427
|
|
|
return $this->formatter; |
|
428
|
|
|
} |
|
429
|
|
|
|
|
430
|
|
|
/** |
|
431
|
|
|
* Get the inside. |
|
432
|
|
|
* |
|
433
|
|
|
* @return boolean Returns the inside. |
|
434
|
|
|
*/ |
|
435
|
|
|
public function getInside() { |
|
436
|
|
|
return $this->inside; |
|
437
|
|
|
} |
|
438
|
|
|
|
|
439
|
|
|
/** |
|
440
|
|
|
* Get the overflow. |
|
441
|
|
|
* |
|
442
|
|
|
* @return string Returns the overflow. |
|
443
|
|
|
*/ |
|
444
|
|
|
public function getOverflow() { |
|
445
|
|
|
return $this->overflow; |
|
446
|
|
|
} |
|
447
|
|
|
|
|
448
|
|
|
/** |
|
449
|
|
|
* Get the padding. |
|
450
|
|
|
* |
|
451
|
|
|
* @return integer Returns the padding. |
|
452
|
|
|
*/ |
|
453
|
|
|
public function getPadding() { |
|
454
|
|
|
return $this->padding; |
|
455
|
|
|
} |
|
456
|
|
|
|
|
457
|
|
|
/** |
|
458
|
|
|
* Get the rotation. |
|
459
|
|
|
* |
|
460
|
|
|
* @return integer Returns the rotation. |
|
461
|
|
|
*/ |
|
462
|
|
|
public function getRotation() { |
|
463
|
|
|
return $this->rotation; |
|
464
|
|
|
} |
|
465
|
|
|
|
|
466
|
|
|
/** |
|
467
|
|
|
* Get the shadow. |
|
468
|
|
|
* |
|
469
|
|
|
* @return boolean|array Returns the shadow. |
|
470
|
|
|
*/ |
|
471
|
|
|
public function getShadow() { |
|
472
|
|
|
return $this->shadow; |
|
473
|
|
|
} |
|
474
|
|
|
|
|
475
|
|
|
/** |
|
476
|
|
|
* Get the shape. |
|
477
|
|
|
* |
|
478
|
|
|
* @return string Returns the shape. |
|
479
|
|
|
*/ |
|
480
|
|
|
public function getShape() { |
|
481
|
|
|
return $this->shape; |
|
482
|
|
|
} |
|
483
|
|
|
|
|
484
|
|
|
/** |
|
485
|
|
|
* Get the style. |
|
486
|
|
|
* |
|
487
|
|
|
* @return array Returns the style. |
|
488
|
|
|
*/ |
|
489
|
|
|
public function getStyle() { |
|
490
|
|
|
return $this->style; |
|
491
|
|
|
} |
|
492
|
|
|
|
|
493
|
|
|
/** |
|
494
|
|
|
* Get the use HTML. |
|
495
|
|
|
* |
|
496
|
|
|
* @return boolean Returns the use HTML. |
|
497
|
|
|
*/ |
|
498
|
|
|
public function getUseHTML() { |
|
499
|
|
|
return $this->useHTML; |
|
500
|
|
|
} |
|
501
|
|
|
|
|
502
|
|
|
/** |
|
503
|
|
|
* Get the vertical align. |
|
504
|
|
|
* |
|
505
|
|
|
* @return string Returns the vertical align. |
|
506
|
|
|
*/ |
|
507
|
|
|
public function getVerticalAlign() { |
|
508
|
|
|
return $this->verticalAlign; |
|
509
|
|
|
} |
|
510
|
|
|
|
|
511
|
|
|
/** |
|
512
|
|
|
* Get the x. |
|
513
|
|
|
* |
|
514
|
|
|
* @return integer Returns the x. |
|
515
|
|
|
*/ |
|
516
|
|
|
public function getX() { |
|
517
|
|
|
return $this->x; |
|
518
|
|
|
} |
|
519
|
|
|
|
|
520
|
|
|
/** |
|
521
|
|
|
* Get the y. |
|
522
|
|
|
* |
|
523
|
|
|
* @return integer Returns the y. |
|
524
|
|
|
*/ |
|
525
|
|
|
public function getY() { |
|
526
|
|
|
return $this->y; |
|
527
|
|
|
} |
|
528
|
|
|
|
|
529
|
|
|
/** |
|
530
|
|
|
* Get the z index. |
|
531
|
|
|
* |
|
532
|
|
|
* @return integer Returns the z index. |
|
533
|
|
|
*/ |
|
534
|
|
|
public function getZIndex() { |
|
535
|
|
|
return $this->zIndex; |
|
536
|
|
|
} |
|
537
|
|
|
|
|
538
|
|
|
/** |
|
539
|
|
|
* Serialize this instance. |
|
540
|
|
|
* |
|
541
|
|
|
* @return array Returns an array representing this instance. |
|
542
|
|
|
*/ |
|
543
|
|
|
public function jsonSerialize() { |
|
544
|
|
|
return $this->toArray(); |
|
545
|
|
|
} |
|
546
|
|
|
|
|
547
|
|
|
/** |
|
548
|
|
|
* Set the align. |
|
549
|
|
|
* |
|
550
|
|
|
* @param string $align The align. |
|
551
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
552
|
|
|
*/ |
|
553
|
|
|
public function setAlign($align) { |
|
554
|
|
|
switch ($align) { |
|
555
|
|
|
case "center": |
|
556
|
|
|
case "left": |
|
557
|
|
|
case "right": |
|
558
|
|
|
$this->align = $align; |
|
559
|
|
|
break; |
|
560
|
|
|
} |
|
561
|
|
|
return $this; |
|
562
|
|
|
} |
|
563
|
|
|
|
|
564
|
|
|
/** |
|
565
|
|
|
* Set the allow overlap. |
|
566
|
|
|
* |
|
567
|
|
|
* @param boolean $allowOverlap The allow overlap. |
|
568
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
569
|
|
|
*/ |
|
570
|
|
|
public function setAllowOverlap($allowOverlap) { |
|
571
|
|
|
$this->allowOverlap = $allowOverlap; |
|
572
|
|
|
return $this; |
|
573
|
|
|
} |
|
574
|
|
|
|
|
575
|
|
|
/** |
|
576
|
|
|
* Set the background color. |
|
577
|
|
|
* |
|
578
|
|
|
* @param string $backgroundColor The background color. |
|
579
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
580
|
|
|
*/ |
|
581
|
|
|
public function setBackgroundColor($backgroundColor) { |
|
582
|
|
|
$this->backgroundColor = $backgroundColor; |
|
583
|
|
|
return $this; |
|
584
|
|
|
} |
|
585
|
|
|
|
|
586
|
|
|
/** |
|
587
|
|
|
* Set the border color. |
|
588
|
|
|
* |
|
589
|
|
|
* @param string $borderColor The border color. |
|
590
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
591
|
|
|
*/ |
|
592
|
|
|
public function setBorderColor($borderColor) { |
|
593
|
|
|
$this->borderColor = $borderColor; |
|
594
|
|
|
return $this; |
|
595
|
|
|
} |
|
596
|
|
|
|
|
597
|
|
|
/** |
|
598
|
|
|
* Set the border radius. |
|
599
|
|
|
* |
|
600
|
|
|
* @param integer $borderRadius The border radius. |
|
601
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
602
|
|
|
*/ |
|
603
|
|
|
public function setBorderRadius($borderRadius) { |
|
604
|
|
|
$this->borderRadius = $borderRadius; |
|
605
|
|
|
return $this; |
|
606
|
|
|
} |
|
607
|
|
|
|
|
608
|
|
|
/** |
|
609
|
|
|
* Set the border width. |
|
610
|
|
|
* |
|
611
|
|
|
* @param integer $borderWidth The border width. |
|
612
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
613
|
|
|
*/ |
|
614
|
|
|
public function setBorderWidth($borderWidth) { |
|
615
|
|
|
$this->borderWidth = $borderWidth; |
|
616
|
|
|
return $this; |
|
617
|
|
|
} |
|
618
|
|
|
|
|
619
|
|
|
/** |
|
620
|
|
|
* Set the class name. |
|
621
|
|
|
* |
|
622
|
|
|
* @param string $className The class name. |
|
623
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
624
|
|
|
*/ |
|
625
|
|
|
public function setClassName($className) { |
|
626
|
|
|
$this->className = $className; |
|
627
|
|
|
return $this; |
|
628
|
|
|
} |
|
629
|
|
|
|
|
630
|
|
|
/** |
|
631
|
|
|
* Set the color. |
|
632
|
|
|
* |
|
633
|
|
|
* @param string $color The color. |
|
634
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
635
|
|
|
*/ |
|
636
|
|
|
public function setColor($color) { |
|
637
|
|
|
$this->color = $color; |
|
638
|
|
|
return $this; |
|
639
|
|
|
} |
|
640
|
|
|
|
|
641
|
|
|
/** |
|
642
|
|
|
* Set the crop. |
|
643
|
|
|
* |
|
644
|
|
|
* @param boolean $crop The crop. |
|
645
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
646
|
|
|
*/ |
|
647
|
|
|
public function setCrop($crop) { |
|
648
|
|
|
$this->crop = $crop; |
|
649
|
|
|
return $this; |
|
650
|
|
|
} |
|
651
|
|
|
|
|
652
|
|
|
/** |
|
653
|
|
|
* Set the defer. |
|
654
|
|
|
* |
|
655
|
|
|
* @param boolean $defer The defer. |
|
656
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
657
|
|
|
*/ |
|
658
|
|
|
public function setDefer($defer) { |
|
659
|
|
|
$this->defer = $defer; |
|
660
|
|
|
return $this; |
|
661
|
|
|
} |
|
662
|
|
|
|
|
663
|
|
|
/** |
|
664
|
|
|
* Set the enabled. |
|
665
|
|
|
* |
|
666
|
|
|
* @param boolean $enabled The enabled. |
|
667
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
668
|
|
|
*/ |
|
669
|
|
|
public function setEnabled($enabled) { |
|
670
|
|
|
$this->enabled = $enabled; |
|
671
|
|
|
return $this; |
|
672
|
|
|
} |
|
673
|
|
|
|
|
674
|
|
|
/** |
|
675
|
|
|
* Set the format. |
|
676
|
|
|
* |
|
677
|
|
|
* @param string $format The format. |
|
678
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
679
|
|
|
*/ |
|
680
|
|
|
public function setFormat($format) { |
|
681
|
|
|
$this->format = $format; |
|
682
|
|
|
return $this; |
|
683
|
|
|
} |
|
684
|
|
|
|
|
685
|
|
|
/** |
|
686
|
|
|
* Set the formatter. |
|
687
|
|
|
* |
|
688
|
|
|
* @param string $formatter The formatter. |
|
689
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
690
|
|
|
*/ |
|
691
|
|
|
public function setFormatter($formatter) { |
|
692
|
|
|
$this->formatter = $formatter; |
|
693
|
|
|
return $this; |
|
694
|
|
|
} |
|
695
|
|
|
|
|
696
|
|
|
/** |
|
697
|
|
|
* Set the inside. |
|
698
|
|
|
* |
|
699
|
|
|
* @param boolean $inside The inside. |
|
700
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
701
|
|
|
*/ |
|
702
|
|
|
public function setInside($inside) { |
|
703
|
|
|
$this->inside = $inside; |
|
704
|
|
|
return $this; |
|
705
|
|
|
} |
|
706
|
|
|
|
|
707
|
|
|
/** |
|
708
|
|
|
* Set the overflow. |
|
709
|
|
|
* |
|
710
|
|
|
* @param string $overflow The overflow. |
|
711
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
712
|
|
|
*/ |
|
713
|
|
|
public function setOverflow($overflow) { |
|
714
|
|
|
switch ($overflow) { |
|
715
|
|
|
case "justify": |
|
716
|
|
|
case "none": |
|
717
|
|
|
$this->overflow = $overflow; |
|
718
|
|
|
break; |
|
719
|
|
|
} |
|
720
|
|
|
return $this; |
|
721
|
|
|
} |
|
722
|
|
|
|
|
723
|
|
|
/** |
|
724
|
|
|
* Set the padding. |
|
725
|
|
|
* |
|
726
|
|
|
* @param integer $padding The padding. |
|
727
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
728
|
|
|
*/ |
|
729
|
|
|
public function setPadding($padding) { |
|
730
|
|
|
$this->padding = $padding; |
|
731
|
|
|
return $this; |
|
732
|
|
|
} |
|
733
|
|
|
|
|
734
|
|
|
/** |
|
735
|
|
|
* Set the rotation. |
|
736
|
|
|
* |
|
737
|
|
|
* @param integer $rotation The rotation. |
|
738
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
739
|
|
|
*/ |
|
740
|
|
|
public function setRotation($rotation) { |
|
741
|
|
|
$this->rotation = $rotation; |
|
742
|
|
|
return $this; |
|
743
|
|
|
} |
|
744
|
|
|
|
|
745
|
|
|
/** |
|
746
|
|
|
* Set the shadow. |
|
747
|
|
|
* |
|
748
|
|
|
* @param boolean|array $shadow The shadow. |
|
749
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
750
|
|
|
*/ |
|
751
|
|
|
public function setShadow($shadow) { |
|
752
|
|
|
$this->shadow = $shadow; |
|
753
|
|
|
return $this; |
|
754
|
|
|
} |
|
755
|
|
|
|
|
756
|
|
|
/** |
|
757
|
|
|
* Set the shape. |
|
758
|
|
|
* |
|
759
|
|
|
* @param string $shape The shape. |
|
760
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
761
|
|
|
*/ |
|
762
|
|
|
public function setShape($shape) { |
|
763
|
|
|
$this->shape = $shape; |
|
764
|
|
|
return $this; |
|
765
|
|
|
} |
|
766
|
|
|
|
|
767
|
|
|
/** |
|
768
|
|
|
* Set the style. |
|
769
|
|
|
* |
|
770
|
|
|
* @param array $style The style. |
|
771
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
772
|
|
|
*/ |
|
773
|
|
|
public function setStyle(array $style = null) { |
|
774
|
|
|
$this->style = $style; |
|
|
|
|
|
|
775
|
|
|
return $this; |
|
776
|
|
|
} |
|
777
|
|
|
|
|
778
|
|
|
/** |
|
779
|
|
|
* Set the use HTML. |
|
780
|
|
|
* |
|
781
|
|
|
* @param boolean $useHTML The use HTML. |
|
782
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
783
|
|
|
*/ |
|
784
|
|
|
public function setUseHTML($useHTML) { |
|
785
|
|
|
$this->useHTML = $useHTML; |
|
786
|
|
|
return $this; |
|
787
|
|
|
} |
|
788
|
|
|
|
|
789
|
|
|
/** |
|
790
|
|
|
* Set the vertical align. |
|
791
|
|
|
* |
|
792
|
|
|
* @param string $verticalAlign The vertical align. |
|
793
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
794
|
|
|
*/ |
|
795
|
|
|
public function setVerticalAlign($verticalAlign) { |
|
796
|
|
|
switch ($verticalAlign) { |
|
797
|
|
|
case "bottom": |
|
798
|
|
|
case "middle": |
|
799
|
|
|
case "top": |
|
800
|
|
|
$this->verticalAlign = $verticalAlign; |
|
801
|
|
|
break; |
|
802
|
|
|
} |
|
803
|
|
|
return $this; |
|
804
|
|
|
} |
|
805
|
|
|
|
|
806
|
|
|
/** |
|
807
|
|
|
* Set the x. |
|
808
|
|
|
* |
|
809
|
|
|
* @param integer $x The x. |
|
810
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
811
|
|
|
*/ |
|
812
|
|
|
public function setX($x) { |
|
813
|
|
|
$this->x = $x; |
|
814
|
|
|
return $this; |
|
815
|
|
|
} |
|
816
|
|
|
|
|
817
|
|
|
/** |
|
818
|
|
|
* Set the y. |
|
819
|
|
|
* |
|
820
|
|
|
* @param integer $y The y. |
|
821
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
822
|
|
|
*/ |
|
823
|
|
|
public function setY($y) { |
|
824
|
|
|
$this->y = $y; |
|
825
|
|
|
return $this; |
|
826
|
|
|
} |
|
827
|
|
|
|
|
828
|
|
|
/** |
|
829
|
|
|
* Set the z index. |
|
830
|
|
|
* |
|
831
|
|
|
* @param integer $zIndex The z index. |
|
832
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Bubble\HighchartsDataLabels Returns the highcharts data labels. |
|
833
|
|
|
*/ |
|
834
|
|
|
public function setZIndex($zIndex) { |
|
835
|
|
|
$this->zIndex = $zIndex; |
|
836
|
|
|
return $this; |
|
837
|
|
|
} |
|
838
|
|
|
|
|
839
|
|
|
/** |
|
840
|
|
|
* Convert into an array representing this instance. |
|
841
|
|
|
* |
|
842
|
|
|
* @return array Returns an array representing this instance. |
|
843
|
|
|
*/ |
|
844
|
|
|
public function toArray() { |
|
845
|
|
|
|
|
846
|
|
|
// Initialize the output. |
|
847
|
|
|
$output = []; |
|
848
|
|
|
|
|
849
|
|
|
// Set the align. |
|
850
|
|
|
ArrayUtility::set($output, "align", $this->align, [null]); |
|
851
|
|
|
|
|
852
|
|
|
// Set the allow overlap. |
|
853
|
|
|
ArrayUtility::set($output, "allowOverlap", $this->allowOverlap, [null]); |
|
854
|
|
|
|
|
855
|
|
|
// Set the background color. |
|
856
|
|
|
ArrayUtility::set($output, "backgroundColor", $this->backgroundColor, [null]); |
|
857
|
|
|
|
|
858
|
|
|
// Set the border color. |
|
859
|
|
|
ArrayUtility::set($output, "borderColor", $this->borderColor, [null]); |
|
860
|
|
|
|
|
861
|
|
|
// Set the border radius. |
|
862
|
|
|
ArrayUtility::set($output, "borderRadius", $this->borderRadius, [null]); |
|
863
|
|
|
|
|
864
|
|
|
// Set the border width. |
|
865
|
|
|
ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]); |
|
866
|
|
|
|
|
867
|
|
|
// Set the class name. |
|
868
|
|
|
ArrayUtility::set($output, "className", $this->className, [null]); |
|
869
|
|
|
|
|
870
|
|
|
// Set the color. |
|
871
|
|
|
ArrayUtility::set($output, "color", $this->color, [null]); |
|
872
|
|
|
|
|
873
|
|
|
// Set the crop. |
|
874
|
|
|
ArrayUtility::set($output, "crop", $this->crop, [null]); |
|
875
|
|
|
|
|
876
|
|
|
// Set the defer. |
|
877
|
|
|
ArrayUtility::set($output, "defer", $this->defer, [null]); |
|
878
|
|
|
|
|
879
|
|
|
// Set the enabled. |
|
880
|
|
|
ArrayUtility::set($output, "enabled", $this->enabled, [null]); |
|
881
|
|
|
|
|
882
|
|
|
// Set the format. |
|
883
|
|
|
ArrayUtility::set($output, "format", $this->format, [null]); |
|
884
|
|
|
|
|
885
|
|
|
// Set the formatter. |
|
886
|
|
|
ArrayUtility::set($output, "formatter", $this->formatter, [null]); |
|
887
|
|
|
|
|
888
|
|
|
// Set the inside. |
|
889
|
|
|
ArrayUtility::set($output, "inside", $this->inside, [null]); |
|
890
|
|
|
|
|
891
|
|
|
// Set the overflow. |
|
892
|
|
|
ArrayUtility::set($output, "overflow", $this->overflow, [null]); |
|
893
|
|
|
|
|
894
|
|
|
// Set the padding. |
|
895
|
|
|
ArrayUtility::set($output, "padding", $this->padding, [null]); |
|
896
|
|
|
|
|
897
|
|
|
// Set the rotation. |
|
898
|
|
|
ArrayUtility::set($output, "rotation", $this->rotation, [null]); |
|
899
|
|
|
|
|
900
|
|
|
// Set the shadow. |
|
901
|
|
|
ArrayUtility::set($output, "shadow", $this->shadow, [null]); |
|
902
|
|
|
|
|
903
|
|
|
// Set the shape. |
|
904
|
|
|
ArrayUtility::set($output, "shape", $this->shape, [null]); |
|
905
|
|
|
|
|
906
|
|
|
// Set the style. |
|
907
|
|
|
ArrayUtility::set($output, "style", $this->style, [null]); |
|
908
|
|
|
|
|
909
|
|
|
// Set the use HTML. |
|
910
|
|
|
ArrayUtility::set($output, "useHTML", $this->useHTML, [null]); |
|
911
|
|
|
|
|
912
|
|
|
// Set the vertical align. |
|
913
|
|
|
ArrayUtility::set($output, "verticalAlign", $this->verticalAlign, [null]); |
|
914
|
|
|
|
|
915
|
|
|
// Set the x. |
|
916
|
|
|
ArrayUtility::set($output, "x", $this->x, [null]); |
|
917
|
|
|
|
|
918
|
|
|
// Set the y. |
|
919
|
|
|
ArrayUtility::set($output, "y", $this->y, [null]); |
|
920
|
|
|
|
|
921
|
|
|
// Set the z index. |
|
922
|
|
|
ArrayUtility::set($output, "zIndex", $this->zIndex, [null]); |
|
923
|
|
|
|
|
924
|
|
|
// Return the output. |
|
925
|
|
|
return $output; |
|
926
|
|
|
} |
|
927
|
|
|
|
|
928
|
|
|
} |
|
929
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..