ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_Chart_PlotArea Class Reference
+ Collaboration diagram for PHPExcel_Chart_PlotArea:

Public Member Functions

 __construct (PHPExcel_Chart_Layout $layout=null, $plotSeries=array())
 Create a new PHPExcel_Chart_PlotArea. More...
 
 getLayout ()
 Get Layout. More...
 
 getPlotGroupCount ()
 Get Number of Plot Groups. More...
 
 getPlotSeriesCount ()
 Get Number of Plot Series. More...
 
 getPlotGroup ()
 Get Plot Series. More...
 
 getPlotGroupByIndex ($index)
 Get Plot Series by Index. More...
 
 setPlotSeries ($plotSeries=array())
 
 refresh (PHPExcel_Worksheet $worksheet)
 

Private Attributes

 $_layout = null
 
 $_plotSeries = array()
 

Detailed Description

Definition at line 36 of file PlotArea.php.

Constructor & Destructor Documentation

◆ __construct()

PHPExcel_Chart_PlotArea::__construct ( PHPExcel_Chart_Layout  $layout = null,
  $plotSeries = array() 
)

Create a new PHPExcel_Chart_PlotArea.

Definition at line 55 of file PlotArea.php.

56 {
57 $this->_layout = $layout;
58 $this->_plotSeries = $plotSeries;
59 }

References $layout.

Member Function Documentation

◆ getLayout()

PHPExcel_Chart_PlotArea::getLayout ( )

Get Layout.

Returns
PHPExcel_Chart_Layout

Definition at line 66 of file PlotArea.php.

66 {
67 return $this->_layout;
68 }

References $_layout.

◆ getPlotGroup()

PHPExcel_Chart_PlotArea::getPlotGroup ( )

Get Plot Series.

Returns
array of PHPExcel_Chart_DataSeries

Definition at line 97 of file PlotArea.php.

97 {
98 return $this->_plotSeries;
99 }

References $_plotSeries.

◆ getPlotGroupByIndex()

PHPExcel_Chart_PlotArea::getPlotGroupByIndex (   $index)

Get Plot Series by Index.

Returns
PHPExcel_Chart_DataSeries

Definition at line 106 of file PlotArea.php.

106 {
107 return $this->_plotSeries[$index];
108 }
$index
Definition: metadata.php:60

References $index.

◆ getPlotGroupCount()

PHPExcel_Chart_PlotArea::getPlotGroupCount ( )

Get Number of Plot Groups.

Returns
array of PHPExcel_Chart_DataSeries

Definition at line 75 of file PlotArea.php.

75 {
76 return count($this->_plotSeries);
77 }

◆ getPlotSeriesCount()

PHPExcel_Chart_PlotArea::getPlotSeriesCount ( )

Get Number of Plot Series.

Returns
integer

Definition at line 84 of file PlotArea.php.

84 {
85 $seriesCount = 0;
86 foreach($this->_plotSeries as $plot) {
87 $seriesCount += $plot->getPlotSeriesCount();
88 }
89 return $seriesCount;
90 }

◆ refresh()

PHPExcel_Chart_PlotArea::refresh ( PHPExcel_Worksheet  $worksheet)

Definition at line 122 of file PlotArea.php.

122 {
123 foreach($this->_plotSeries as $plotSeries) {
124 $plotSeries->refresh($worksheet);
125 }
126 }
$worksheet

References $worksheet.

◆ setPlotSeries()

PHPExcel_Chart_PlotArea::setPlotSeries (   $plotSeries = array())
Set Plot Series

@param [PHPExcel_Chart_DataSeries]
Returns
PHPExcel_Chart_PlotArea

Definition at line 116 of file PlotArea.php.

116 {
117 $this->_plotSeries = $plotSeries;
118
119 return $this;
120 }

Field Documentation

◆ $_layout

PHPExcel_Chart_PlotArea::$_layout = null
private

Definition at line 43 of file PlotArea.php.

Referenced by getLayout().

◆ $_plotSeries

PHPExcel_Chart_PlotArea::$_plotSeries = array()
private

Definition at line 50 of file PlotArea.php.

Referenced by getPlotGroup().


The documentation for this class was generated from the following file: