ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Chart\PlotArea Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Chart\PlotArea:

Public Member Functions

 __construct (?Layout $layout=null, array $plotSeries=[])
 Create a new 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 (array $plotSeries)
 Set Plot Series. More...
 
 refresh (Worksheet $worksheet)
 

Private Attributes

 $layout
 
 $plotSeries = []
 

Detailed Description

Definition at line 7 of file PlotArea.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::__construct ( ?Layout  $layout = null,
array  $plotSeries = [] 
)

Create a new PlotArea.

Parameters
DataSeries[]$plotSeries

Definition at line 28 of file PlotArea.php.

References PhpOffice\PhpSpreadsheet\Chart\PlotArea\$layout, and PhpOffice\PhpSpreadsheet\Chart\PlotArea\$plotSeries.

29  {
30  $this->layout = $layout;
31  $this->plotSeries = $plotSeries;
32  }

Member Function Documentation

◆ getLayout()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::getLayout ( )

Get Layout.

Returns
Layout

Definition at line 39 of file PlotArea.php.

References PhpOffice\PhpSpreadsheet\Chart\PlotArea\$layout.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writePlotArea().

+ Here is the caller graph for this function:

◆ getPlotGroup()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::getPlotGroup ( )

Get Plot Series.

Returns
DataSeries[]

Definition at line 72 of file PlotArea.php.

References PhpOffice\PhpSpreadsheet\Chart\PlotArea\$plotSeries.

◆ getPlotGroupByIndex()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::getPlotGroupByIndex (   $index)

Get Plot Series by Index.

Parameters
mixed$index
Returns
DataSeries

Definition at line 84 of file PlotArea.php.

References $index.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writePlotArea().

85  {
86  return $this->plotSeries[$index];
87  }
$index
Definition: metadata.php:60
+ Here is the caller graph for this function:

◆ getPlotGroupCount()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::getPlotGroupCount ( )

Get Number of Plot Groups.

Definition at line 47 of file PlotArea.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Xlsx\Chart\writePlotArea().

47  : int
48  {
49  return count($this->plotSeries);
50  }
+ Here is the caller graph for this function:

◆ getPlotSeriesCount()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::getPlotSeriesCount ( )

Get Number of Plot Series.

Returns
int

Definition at line 57 of file PlotArea.php.

58  {
59  $seriesCount = 0;
60  foreach ($this->plotSeries as $plot) {
61  $seriesCount += $plot->getPlotSeriesCount();
62  }
63 
64  return $seriesCount;
65  }

◆ refresh()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::refresh ( Worksheet  $worksheet)

Definition at line 103 of file PlotArea.php.

References PhpOffice\PhpSpreadsheet\Chart\PlotArea\$plotSeries.

103  : void
104  {
105  foreach ($this->plotSeries as $plotSeries) {
106  $plotSeries->refresh($worksheet);
107  }
108  }

◆ setPlotSeries()

PhpOffice\PhpSpreadsheet\Chart\PlotArea::setPlotSeries ( array  $plotSeries)

Set Plot Series.

Parameters
DataSeries[]$plotSeries
Returns
$this

Definition at line 96 of file PlotArea.php.

References PhpOffice\PhpSpreadsheet\Chart\PlotArea\$plotSeries.

97  {
98  $this->plotSeries = $plotSeries;
99 
100  return $this;
101  }

Field Documentation

◆ $layout

PhpOffice\PhpSpreadsheet\Chart\PlotArea::$layout
private

◆ $plotSeries


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