vr-shopxo-source/extend/phpexcel/PHPExcel/Chart/Layout.php

487 lines
9.4 KiB
PHP
Raw Normal View History

2018-12-28 10:58:37 +00:00
<?php
/**
* PHPExcel
*
* Copyright (c) 2006 - 2015 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* @category PHPExcel
* @package PHPExcel_Chart
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
* @version ##VERSION##, ##DATE##
*/
/**
* PHPExcel_Chart_Layout
*
* @category PHPExcel
* @package PHPExcel_Chart
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Chart_Layout
{
/**
* layoutTarget
*
* @var string
*/
private $layoutTarget;
/**
* X Mode
*
* @var string
*/
private $xMode;
/**
* Y Mode
*
* @var string
*/
private $yMode;
/**
* X-Position
*
* @var float
*/
private $xPos;
/**
* Y-Position
*
* @var float
*/
private $yPos;
/**
* width
*
* @var float
*/
private $width;
/**
* height
*
* @var float
*/
private $height;
/**
* show legend key
* Specifies that legend keys should be shown in data labels
*
* @var boolean
*/
private $showLegendKey;
/**
* show value
* Specifies that the value should be shown in a data label.
*
* @var boolean
*/
private $showVal;
/**
* show category name
* Specifies that the category name should be shown in the data label.
*
* @var boolean
*/
private $showCatName;
/**
* show data series name
* Specifies that the series name should be shown in the data label.
*
* @var boolean
*/
private $showSerName;
/**
* show percentage
* Specifies that the percentage should be shown in the data label.
*
* @var boolean
*/
private $showPercent;
/**
* show bubble size
*
* @var boolean
*/
private $showBubbleSize;
/**
* show leader lines
* Specifies that leader lines should be shown for the data label.
*
* @var boolean
*/
private $showLeaderLines;
/**
* Create a new PHPExcel_Chart_Layout
*/
public function __construct($layout = array())
{
if (isset($layout['layoutTarget'])) {
$this->layoutTarget = $layout['layoutTarget'];
}
if (isset($layout['xMode'])) {
$this->xMode = $layout['xMode'];
}
if (isset($layout['yMode'])) {
$this->yMode = $layout['yMode'];
}
if (isset($layout['x'])) {
$this->xPos = (float) $layout['x'];
}
if (isset($layout['y'])) {