@@ 12-75 (lines=64) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class CalendarChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var CalendarChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new CalendarChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'Calendar'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'calendar'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::ERROR, |
|
40 | EventType::ON_MOUSE_OUT, |
|
41 | EventType::ON_MOUSE_OVER, |
|
42 | EventType::READY, |
|
43 | EventType::SELECT, |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return CalendarChartOptions |
|
49 | */ |
|
50 | public function getOptions() |
|
51 | { |
|
52 | return $this->options; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param CalendarChartOptions $options |
|
57 | * |
|
58 | * @return CalendarChart |
|
59 | */ |
|
60 | public function setOptions($options) |
|
61 | { |
|
62 | $this->options = $options; |
|
63 | ||
64 | return $this; |
|
65 | } |
|
66 | } |
|
67 |
@@ 12-77 (lines=66) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class GanttChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var GanttChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new GanttChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'Gantt'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'gantt'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::CLICK, |
|
40 | EventType::ERROR, |
|
41 | EventType::READY, |
|
42 | EventType::SELECT, |
|
43 | ]; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return GanttChartOptions |
|
48 | */ |
|
49 | public function getOptions() |
|
50 | { |
|
51 | return $this->options; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param GanttChartOptions $options |
|
56 | * |
|
57 | * @return GanttChart |
|
58 | */ |
|
59 | public function setOptions($options) |
|
60 | { |
|
61 | $this->options = $options; |
|
62 | ||
63 | return $this; |
|
64 | } |
|
65 | } |
|
66 |
@@ 12-74 (lines=63) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class GeoChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var GeoChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new GeoChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'GeoChart'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'geochart'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::ERROR, |
|
40 | EventType::READY, |
|
41 | EventType::REGION_CLICK, |
|
42 | EventType::SELECT, |
|
43 | ]; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return GeoChartOptions |
|
48 | */ |
|
49 | public function getOptions() |
|
50 | { |
|
51 | return $this->options; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param GeoChartOptions $options |
|
56 | * |
|
57 | * @return GeoChart |
|
58 | */ |
|
59 | public function setOptions($options) |
|
60 | { |
|
61 | $this->options = $options; |
|
62 | ||
63 | return $this; |
|
64 | } |
|
65 | } |
|
66 |
@@ 12-79 (lines=68) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class OrgChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var OrgChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new OrgChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'OrgChart'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'orgchart'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::COLLAPSE, |
|
40 | EventType::ON_MOUSE_OUT, |
|
41 | EventType::ON_MOUSE_OVER, |
|
42 | EventType::READY, |
|
43 | EventType::SELECT, |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return OrgChartOptions |
|
49 | */ |
|
50 | public function getOptions() |
|
51 | { |
|
52 | return $this->options; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param OrgChartOptions $options |
|
57 | * |
|
58 | * @return OrgChart |
|
59 | */ |
|
60 | public function setOptions($options) |
|
61 | { |
|
62 | $this->options = $options; |
|
63 | ||
64 | return $this; |
|
65 | } |
|
66 | } |
|
67 |
@@ 12-76 (lines=65) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class PieChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var PieChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new PieChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'PieChart'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'corechart'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::CLICK, |
|
40 | EventType::ERROR, |
|
41 | EventType::ON_MOUSE_OUT, |
|
42 | EventType::ON_MOUSE_OVER, |
|
43 | EventType::READY, |
|
44 | EventType::SELECT, |
|
45 | ]; |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * @return PieChartOptions |
|
50 | */ |
|
51 | public function getOptions() |
|
52 | { |
|
53 | return $this->options; |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * @param PieChartOptions $options |
|
58 | * |
|
59 | * @return PieChart |
|
60 | */ |
|
61 | public function setOptions($options) |
|
62 | { |
|
63 | $this->options = $options; |
|
64 | ||
65 | return $this; |
|
66 | } |
|
67 | } |
|
68 |
@@ 12-79 (lines=68) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class SankeyDiagram extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var SankeyDiagramOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new SankeyDiagramOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'Sankey'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'sankey'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::ERROR, |
|
40 | EventType::ON_MOUSE_OUT, |
|
41 | EventType::ON_MOUSE_OVER, |
|
42 | EventType::READY, |
|
43 | EventType::SELECT, |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return SankeyDiagramOptions |
|
49 | */ |
|
50 | public function getOptions() |
|
51 | { |
|
52 | return $this->options; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param SankeyDiagramOptions $options |
|
57 | * |
|
58 | * @return SankeyDiagram |
|
59 | */ |
|
60 | public function setOptions($options) |
|
61 | { |
|
62 | $this->options = $options; |
|
63 | ||
64 | return $this; |
|
65 | } |
|
66 | } |
|
67 |
@@ 12-74 (lines=63) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class TableChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var TableChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new TableChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'Table'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'table'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::PAGE, |
|
40 | EventType::READY, |
|
41 | EventType::SELECT, |
|
42 | EventType::SORT, |
|
43 | ]; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @return TableChartOptions |
|
48 | */ |
|
49 | public function getOptions() |
|
50 | { |
|
51 | return $this->options; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param TableChartOptions $options |
|
56 | * |
|
57 | * @return TableChart |
|
58 | */ |
|
59 | public function setOptions($options) |
|
60 | { |
|
61 | $this->options = $options; |
|
62 | ||
63 | return $this; |
|
64 | } |
|
65 | } |
|
66 |
@@ 12-75 (lines=64) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class Timeline extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var TimelineOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new TimelineOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'Timeline'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'timeline'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::ERROR, |
|
40 | EventType::ON_MOUSE_OUT, |
|
41 | EventType::ON_MOUSE_OVER, |
|
42 | EventType::READY, |
|
43 | EventType::SELECT, |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return TimelineOptions |
|
49 | */ |
|
50 | public function getOptions() |
|
51 | { |
|
52 | return $this->options; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param TimelineOptions $options |
|
57 | * |
|
58 | * @return Timeline |
|
59 | */ |
|
60 | public function setOptions($options) |
|
61 | { |
|
62 | $this->options = $options; |
|
63 | ||
64 | return $this; |
|
65 | } |
|
66 | } |
|
67 |
@@ 12-75 (lines=64) @@ | ||
9 | /** |
|
10 | * @author Christophe Meneses |
|
11 | */ |
|
12 | class TreeMapChart extends Chart |
|
13 | { |
|
14 | /** |
|
15 | * @var TreeMapChartOptions |
|
16 | */ |
|
17 | protected $options; |
|
18 | ||
19 | public function __construct() |
|
20 | { |
|
21 | parent::__construct(); |
|
22 | ||
23 | $this->options = new TreeMapChartOptions(); |
|
24 | } |
|
25 | ||
26 | public function getType() |
|
27 | { |
|
28 | return 'TreeMap'; |
|
29 | } |
|
30 | ||
31 | public function getPackage() |
|
32 | { |
|
33 | return 'treemap'; |
|
34 | } |
|
35 | ||
36 | public function getAvailableEventTypes() |
|
37 | { |
|
38 | return [ |
|
39 | EventType::ON_MOUSE_OUT, |
|
40 | EventType::ON_MOUSE_OVER, |
|
41 | EventType::READY, |
|
42 | EventType::ROLLUP, |
|
43 | EventType::SELECT, |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @return TreeMapChartOptions |
|
49 | */ |
|
50 | public function getOptions() |
|
51 | { |
|
52 | return $this->options; |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * @param TreeMapChartOptions $options |
|
57 | * |
|
58 | * @return TreeMapChart |
|
59 | */ |
|
60 | public function setOptions($options) |
|
61 | { |
|
62 | $this->options = $options; |
|
63 | ||
64 | return $this; |
|
65 | } |
|
66 | } |
|
67 |