[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/PHPExcel/PHPExcel/Chart/ -> Layout.php (source)

   1  <?php
   2  /**
   3   * PHPExcel
   4   *
   5   * Copyright (c) 2006 - 2012 PHPExcel
   6   *
   7   * This library is free software; you can redistribute it and/or
   8   * modify it under the terms of the GNU Lesser General Public
   9   * License as published by the Free Software Foundation; either
  10   * version 2.1 of the License, or (at your option) any later version.
  11   *
  12   * This library is distributed in the hope that it will be useful,
  13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15   * Lesser General Public License for more details.
  16   *
  17   * You should have received a copy of the GNU Lesser General Public
  18   * License along with this library; if not, write to the Free Software
  19   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  20   *
  21   * @category    PHPExcel
  22   * @package        PHPExcel_Chart
  23   * @copyright    Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
  24   * @license        http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  25   * @version        1.7.7, 2012-05-19
  26   */
  27  
  28  
  29  /**
  30   * PHPExcel_Chart_Layout
  31   *
  32   * @category    PHPExcel
  33   * @package        PHPExcel_Chart
  34   * @copyright    Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
  35   */
  36  class PHPExcel_Chart_Layout
  37  {
  38      /**
  39       * layoutTarget
  40       *
  41       * @var string
  42       */
  43      private $_layoutTarget = null;
  44  
  45      /**
  46       * X Mode
  47       *
  48       * @var string
  49       */
  50      private $_xMode        = null;
  51  
  52      /**
  53       * Y Mode
  54       *
  55       * @var string
  56       */
  57      private $_yMode        = null;
  58  
  59      /**
  60       * X-Position
  61       *
  62       * @var float
  63       */
  64      private $_xPos        = null;
  65  
  66      /**
  67       * Y-Position
  68       *
  69       * @var float
  70       */
  71      private $_yPos        = null;
  72  
  73      /**
  74       * width
  75       *
  76       * @var float
  77       */
  78      private $_width        = null;
  79  
  80      /**
  81       * height
  82       *
  83       * @var float
  84       */
  85      private $_height    = null;
  86  
  87  
  88      /**
  89       * Create a new PHPExcel_Chart_Layout
  90       */
  91  	public function __construct($layout=array())
  92      {
  93          if (isset($layout['layoutTarget']))    { $this->_layoutTarget    = $layout['layoutTarget'];    }
  94          if (isset($layout['xMode']))        { $this->_xMode            = $layout['xMode'];            }
  95          if (isset($layout['yMode']))        { $this->_yMode            = $layout['yMode'];            }
  96          if (isset($layout['x']))            { $this->_xPos            = (float) $layout['x'];        }
  97          if (isset($layout['y']))            { $this->_yPos            = (float) $layout['y'];        }
  98          if (isset($layout['w']))            { $this->_width            = (float) $layout['w'];        }
  99          if (isset($layout['h']))            { $this->_height        = (float) $layout['h'];        }
 100      }
 101  
 102      /**
 103       * Get Layout Target
 104       *
 105       * @return string
 106       */
 107  	public function getLayoutTarget() {
 108          return $this->_layoutTarget;
 109      }
 110  
 111      /**
 112       * Set Layout Target
 113       *
 114       * @param Layout Target $value
 115       */
 116  	public function setLayoutTarget($value) {
 117          $this->_layoutTarget = $value;
 118      }
 119  
 120      /**
 121       * Get X-Mode
 122       *
 123       * @return string
 124       */
 125  	public function getXMode() {
 126          return $this->_xMode;
 127      }
 128  
 129      /**
 130       * Set X-Mode
 131       *
 132       * @param X-Mode $value
 133       */
 134  	public function setXMode($value) {
 135          $this->_xMode = $value;
 136      }
 137  
 138      /**
 139       * Get Y-Mode
 140       *
 141       * @return string
 142       */
 143  	public function getYMode() {
 144          return $this->_xMode;
 145      }
 146  
 147      /**
 148       * Set Y-Mode
 149       *
 150       * @param Y-Mode $value
 151       */
 152  	public function setYMode($value) {
 153          $this->_xMode = $value;
 154      }
 155  
 156      /**
 157       * Get X-Position
 158       *
 159       * @return number
 160       */
 161  	public function getXPosition() {
 162          return $this->_xPos;
 163      }
 164  
 165      /**
 166       * Set X-Position
 167       *
 168       * @param X-Position $value
 169       */
 170  	public function setXPosition($value) {
 171          $this->_xPos = $value;
 172      }
 173  
 174      /**
 175       * Get Y-Position
 176       *
 177       * @return number
 178       */
 179  	public function getYPosition() {
 180          return $this->_yPos;
 181      }
 182  
 183      /**
 184       * Set Y-Position
 185       *
 186       * @param Y-Position $value
 187       */
 188  	public function setYPosition($value) {
 189          $this->_yPos = $value;
 190      }
 191  
 192      /**
 193       * Get Width
 194       *
 195       * @return number
 196       */
 197  	public function getWidth() {
 198          return $this->_width;
 199      }
 200  
 201      /**
 202       * Set Width
 203       *
 204       * @param Width $value
 205       */
 206  	public function setWidth($value) {
 207          $this->_width = $value;
 208      }
 209  
 210      /**
 211       * Get Height
 212       *
 213       * @return number
 214       */
 215  	public function getHeight() {
 216          return $this->_height;
 217      }
 218  
 219      /**
 220       * Set Height
 221       *
 222       * @param Height $value
 223       */
 224  	public function setHeight($value) {
 225          $this->_height = $value;
 226      }
 227  
 228  }


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1