ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PlotArea.php
Go to the documentation of this file.
1<?php
2
4
6
8{
14 private $layout;
15
21 private $plotSeries = [];
22
28 public function __construct(?Layout $layout = null, array $plotSeries = [])
29 {
30 $this->layout = $layout;
31 $this->plotSeries = $plotSeries;
32 }
33
39 public function getLayout()
40 {
41 return $this->layout;
42 }
43
47 public function getPlotGroupCount(): int
48 {
49 return count($this->plotSeries);
50 }
51
57 public function getPlotSeriesCount()
58 {
59 $seriesCount = 0;
60 foreach ($this->plotSeries as $plot) {
61 $seriesCount += $plot->getPlotSeriesCount();
62 }
63
64 return $seriesCount;
65 }
66
72 public function getPlotGroup()
73 {
74 return $this->plotSeries;
75 }
76
84 public function getPlotGroupByIndex($index)
85 {
86 return $this->plotSeries[$index];
87 }
88
96 public function setPlotSeries(array $plotSeries)
97 {
98 $this->plotSeries = $plotSeries;
99
100 return $this;
101 }
102
103 public function refresh(Worksheet $worksheet): void
104 {
105 foreach ($this->plotSeries as $plotSeries) {
106 $plotSeries->refresh($worksheet);
107 }
108 }
109}
An exception for terminatinating execution or to throw for unit testing.
getPlotSeriesCount()
Get Number of Plot Series.
Definition: PlotArea.php:57
setPlotSeries(array $plotSeries)
Set Plot Series.
Definition: PlotArea.php:96
getPlotGroupCount()
Get Number of Plot Groups.
Definition: PlotArea.php:47
__construct(?Layout $layout=null, array $plotSeries=[])
Create a new PlotArea.
Definition: PlotArea.php:28
getPlotGroupByIndex($index)
Get Plot Series by Index.
Definition: PlotArea.php:84
$index
Definition: metadata.php:60