[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * PHPExcel_Chart_PlotArea 5 * 6 * Copyright (c) 2006 - 2015 PHPExcel 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2.1 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 * 22 * @category PHPExcel 23 * @package PHPExcel_Chart 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 26 * @version ##VERSION##, ##DATE## 27 */ 28 class PHPExcel_Chart_PlotArea 29 { 30 /** 31 * PlotArea Layout 32 * 33 * @var PHPExcel_Chart_Layout 34 */ 35 private $layout = null; 36 37 /** 38 * Plot Series 39 * 40 * @var array of PHPExcel_Chart_DataSeries 41 */ 42 private $plotSeries = array(); 43 44 /** 45 * Create a new PHPExcel_Chart_PlotArea 46 */ 47 public function __construct(PHPExcel_Chart_Layout $layout = null, $plotSeries = array()) 48 { 49 $this->layout = $layout; 50 $this->plotSeries = $plotSeries; 51 } 52 53 /** 54 * Get Layout 55 * 56 * @return PHPExcel_Chart_Layout 57 */ 58 public function getLayout() 59 { 60 return $this->layout; 61 } 62 63 /** 64 * Get Number of Plot Groups 65 * 66 * @return array of PHPExcel_Chart_DataSeries 67 */ 68 public function getPlotGroupCount() 69 { 70 return count($this->plotSeries); 71 } 72 73 /** 74 * Get Number of Plot Series 75 * 76 * @return integer 77 */ 78 public function getPlotSeriesCount() 79 { 80 $seriesCount = 0; 81 foreach ($this->plotSeries as $plot) { 82 $seriesCount += $plot->getPlotSeriesCount(); 83 } 84 return $seriesCount; 85 } 86 87 /** 88 * Get Plot Series 89 * 90 * @return array of PHPExcel_Chart_DataSeries 91 */ 92 public function getPlotGroup() 93 { 94 return $this->plotSeries; 95 } 96 97 /** 98 * Get Plot Series by Index 99 * 100 * @return PHPExcel_Chart_DataSeries 101 */ 102 public function getPlotGroupByIndex($index) 103 { 104 return $this->plotSeries[$index]; 105 } 106 107 /** 108 * Set Plot Series 109 * 110 * @param [PHPExcel_Chart_DataSeries] 111 * @return PHPExcel_Chart_PlotArea 112 */ 113 public function setPlotSeries($plotSeries = array()) 114 { 115 $this->plotSeries = $plotSeries; 116 117 return $this; 118 } 119 120 public function refresh(PHPExcel_Worksheet $worksheet) 121 { 122 foreach ($this->plotSeries as $plotSeries) { 123 $plotSeries->refresh($worksheet); 124 } 125 } 126 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |