You are here

class PHPExcel_Chart_PlotArea in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/PlotArea.php \PHPExcel_Chart_PlotArea

PHPExcel_Chart_PlotArea

@category PHPExcel @package PHPExcel_Chart @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

Hierarchy

Expanded class hierarchy of PHPExcel_Chart_PlotArea

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/PlotArea.php, line 36

View source
class PHPExcel_Chart_PlotArea {

  /**
   * PlotArea Layout
   *
   * @var PHPExcel_Chart_Layout
   */
  private $_layout = null;

  /**
   * Plot Series
   *
   * @var array of PHPExcel_Chart_DataSeries
   */
  private $_plotSeries = array();

  /**
   * Create a new PHPExcel_Chart_PlotArea
   */
  public function __construct(PHPExcel_Chart_Layout $layout = null, $plotSeries = array()) {
    $this->_layout = $layout;
    $this->_plotSeries = $plotSeries;
  }

  /**
   * Get Layout
   *
   * @return PHPExcel_Chart_Layout
   */
  public function getLayout() {
    return $this->_layout;
  }

  /**
   * Get Number of Plot Groups
   *
   * @return array of PHPExcel_Chart_DataSeries
   */
  public function getPlotGroupCount() {
    return count($this->_plotSeries);
  }

  /**
   * Get Number of Plot Series
   *
   * @return integer
   */
  public function getPlotSeriesCount() {
    $seriesCount = 0;
    foreach ($this->_plotSeries as $plot) {
      $seriesCount += $plot
        ->getPlotSeriesCount();
    }
    return $seriesCount;
  }

  /**
   * Get Plot Series
   *
   * @return array of PHPExcel_Chart_DataSeries
   */
  public function getPlotGroup() {
    return $this->_plotSeries;
  }

  /**
   * Get Plot Series by Index
   *
   * @return PHPExcel_Chart_DataSeries
   */
  public function getPlotGroupByIndex($index) {
    return $this->_plotSeries[$index];
  }

  /**
   * Set Plot Series
   *
   * @param [PHPExcel_Chart_DataSeries]
   * @return PHPExcel_Chart_PlotArea
   */
  public function setPlotSeries($plotSeries = array()) {
    $this->_plotSeries = $plotSeries;
    return $this;
  }
  public function refresh(PHPExcel_Worksheet $worksheet) {
    foreach ($this->_plotSeries as $plotSeries) {
      $plotSeries
        ->refresh($worksheet);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PHPExcel_Chart_PlotArea::$_layout private property * PlotArea Layout * *
PHPExcel_Chart_PlotArea::$_plotSeries private property * Plot Series * *
PHPExcel_Chart_PlotArea::getLayout public function * Get Layout * *
PHPExcel_Chart_PlotArea::getPlotGroup public function * Get Plot Series * *
PHPExcel_Chart_PlotArea::getPlotGroupByIndex public function * Get Plot Series by Index * *
PHPExcel_Chart_PlotArea::getPlotGroupCount public function * Get Number of Plot Groups * *
PHPExcel_Chart_PlotArea::getPlotSeriesCount public function * Get Number of Plot Series * *
PHPExcel_Chart_PlotArea::refresh public function
PHPExcel_Chart_PlotArea::setPlotSeries public function * Set Plot Series * *
PHPExcel_Chart_PlotArea::__construct public function * Create a new PHPExcel_Chart_PlotArea