52 private static $_positionXLref = array( self::xlLegendPositionBottom => self::POSITION_BOTTOM,
53 self::xlLegendPositionCorner => self::POSITION_TOPRIGHT,
54 self::xlLegendPositionCustom =>
'??',
55 self::xlLegendPositionLeft => self::POSITION_LEFT,
56 self::xlLegendPositionRight => self::POSITION_RIGHT,
57 self::xlLegendPositionTop => self::POSITION_TOP
107 if (!in_array($position,self::$_positionXLref)) {
111 $this->_position = $position;
121 return array_search($this->_position,self::$_positionXLref);
130 if (!array_key_exists($positionXL,self::$_positionXLref)) {
134 $this->_position = self::$_positionXLref[$positionXL];
154 if (!is_bool($overlay)) {
158 $this->_overlay = $overlay;
An exception for terminatinating execution or to throw for unit testing.
getOverlay()
Get allow overlay of other elements?
const xlLegendPositionCorner
getPositionXL()
Get legend position as an Excel internal numeric value.
__construct($position=self::POSITION_RIGHT, PHPExcel_Chart_Layout $layout=NULL, $overlay=FALSE)
Create a new PHPExcel_Chart_Legend.
const xlLegendPositionTop
const xlLegendPositionLeft
setPosition($position=self::POSITION_RIGHT)
Get legend position using an excel string value.
setPositionXL($positionXL=self::xlLegendPositionRight)
Set legend position using an Excel internal numeric value.
const xlLegendPositionRight
const xlLegendPositionBottom
Legend positions.
getPosition()
Get legend position as an excel string value.
const xlLegendPositionCustom
setOverlay($overlay=FALSE)
Set allow overlay of other elements?