Setter methods for Title, Legend, X and y axis labels

This commit is contained in:
Mark Baker 2012-06-18 22:26:22 +01:00
parent 5a86c55ed4
commit ccc562dea8
1 changed files with 48 additions and 0 deletions

View File

@ -202,6 +202,18 @@ class PHPExcel_Chart
return $this->_title; return $this->_title;
} }
/**
* Set Title
*
* @param PHPExcel_Chart_Title $title
* @return PHPExcel_Chart
*/
public function setTitle(PHPExcel_Chart_Title $title) {
$this->_title = $title;
return $this;
}
/** /**
* Get Legend * Get Legend
* *
@ -211,6 +223,18 @@ class PHPExcel_Chart
return $this->_legend; return $this->_legend;
} }
/**
* Set Legend
*
* @param PHPExcel_Chart_Legend $legend
* @return PHPExcel_Chart
*/
public function setLegend(PHPExcel_Chart_Legend $legend) {
$this->_legend = $legend;
return $this;
}
/** /**
* Get X-Axis Label * Get X-Axis Label
* *
@ -220,6 +244,18 @@ class PHPExcel_Chart
return $this->_xAxisLabel; return $this->_xAxisLabel;
} }
/**
* Set X-Axis Label
*
* @param PHPExcel_Chart_Title $label
* @return PHPExcel_Chart
*/
public function setXAxisLabel(PHPExcel_Chart_Title $label) {
$this->_xAxisLabel = $label;
return $this;
}
/** /**
* Get Y-Axis Label * Get Y-Axis Label
* *
@ -229,6 +265,18 @@ class PHPExcel_Chart
return $this->_yAxisLabel; return $this->_yAxisLabel;
} }
/**
* Set Y-Axis Label
*
* @param PHPExcel_Chart_Title $label
* @return PHPExcel_Chart
*/
public function setYAxisLabel(PHPExcel_Chart_Title $label) {
$this->_yAxisLabel = $label;
return $this;
}
/** /**
* Get Plot Area * Get Plot Area
* *