ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
PlotArea.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_layout = null;
44 
50  private $_plotSeries = array();
51 
55  public function __construct(PHPExcel_Chart_Layout $layout = null, $plotSeries = array())
56  {
57  $this->_layout = $layout;
58  $this->_plotSeries = $plotSeries;
59  }
60 
66  public function getLayout() {
67  return $this->_layout;
68  }
69 
75  public function getPlotGroupCount() {
76  return count($this->_plotSeries);
77  }
78 
84  public function getPlotSeriesCount() {
85  $seriesCount = 0;
86  foreach($this->_plotSeries as $plot) {
87  $seriesCount += $plot->getPlotSeriesCount();
88  }
89  return $seriesCount;
90  }
91 
97  public function getPlotGroup() {
98  return $this->_plotSeries;
99  }
100 
106  public function getPlotGroupByIndex($index) {
107  return $this->_plotSeries[$index];
108  }
109 
116  public function setPlotSeries($plotSeries = array()) {
117  $this->_plotSeries = $plotSeries;
118 
119  return $this;
120  }
121 
123  foreach($this->_plotSeries as $plotSeries) {
124  $plotSeries->refresh($worksheet);
125  }
126  }
127 
128 }
getPlotGroupCount()
Get Number of Plot Groups.
Definition: PlotArea.php:75
$worksheet
getPlotGroupByIndex($index)
Get Plot Series by Index.
Definition: PlotArea.php:106
getPlotSeriesCount()
Get Number of Plot Series.
Definition: PlotArea.php:84
setPlotSeries($plotSeries=array())
Set Plot Series.
Definition: PlotArea.php:116
getPlotGroup()
Get Plot Series.
Definition: PlotArea.php:97
refresh(PHPExcel_Worksheet $worksheet)
Definition: PlotArea.php:122
Create styles array
The data for the language used.
getLayout()
Get Layout.
Definition: PlotArea.php:66
__construct(PHPExcel_Chart_Layout $layout=null, $plotSeries=array())
Create a new PHPExcel_Chart_PlotArea.
Definition: PlotArea.php:55