[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * PHPExcel 4 * 5 * Copyright (c) 2006 - 2015 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 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 25 * @version ##VERSION##, ##DATE## 26 */ 27 28 29 /** 30 * PHPExcel_Chart_Layout 31 * 32 * @category PHPExcel 33 * @package PHPExcel_Chart 34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 36 class PHPExcel_Chart_Layout 37 { 38 /** 39 * layoutTarget 40 * 41 * @var string 42 */ 43 private $layoutTarget; 44 45 /** 46 * X Mode 47 * 48 * @var string 49 */ 50 private $xMode; 51 52 /** 53 * Y Mode 54 * 55 * @var string 56 */ 57 private $yMode; 58 59 /** 60 * X-Position 61 * 62 * @var float 63 */ 64 private $xPos; 65 66 /** 67 * Y-Position 68 * 69 * @var float 70 */ 71 private $yPos; 72 73 /** 74 * width 75 * 76 * @var float 77 */ 78 private $width; 79 80 /** 81 * height 82 * 83 * @var float 84 */ 85 private $height; 86 87 /** 88 * show legend key 89 * Specifies that legend keys should be shown in data labels 90 * 91 * @var boolean 92 */ 93 private $showLegendKey; 94 95 /** 96 * show value 97 * Specifies that the value should be shown in a data label. 98 * 99 * @var boolean 100 */ 101 private $showVal; 102 103 /** 104 * show category name 105 * Specifies that the category name should be shown in the data label. 106 * 107 * @var boolean 108 */ 109 private $showCatName; 110 111 /** 112 * show data series name 113 * Specifies that the series name should be shown in the data label. 114 * 115 * @var boolean 116 */ 117 private $showSerName; 118 119 /** 120 * show percentage 121 * Specifies that the percentage should be shown in the data label. 122 * 123 * @var boolean 124 */ 125 private $showPercent; 126 127 /** 128 * show bubble size 129 * 130 * @var boolean 131 */ 132 private $showBubbleSize; 133 134 /** 135 * show leader lines 136 * Specifies that leader lines should be shown for the data label. 137 * 138 * @var boolean 139 */ 140 private $showLeaderLines; 141 142 143 /** 144 * Create a new PHPExcel_Chart_Layout 145 */ 146 public function __construct($layout = array()) 147 { 148 if (isset($layout['layoutTarget'])) { 149 $this->layoutTarget = $layout['layoutTarget']; 150 } 151 if (isset($layout['xMode'])) { 152 $this->xMode = $layout['xMode']; 153 } 154 if (isset($layout['yMode'])) { 155 $this->yMode = $layout['yMode']; 156 } 157 if (isset($layout['x'])) { 158 $this->xPos = (float) $layout['x']; 159 } 160 if (isset($layout['y'])) { 161 $this->yPos = (float) $layout['y']; 162 } 163 if (isset($layout['w'])) { 164 $this->width = (float) $layout['w']; 165 } 166 if (isset($layout['h'])) { 167 $this->height = (float) $layout['h']; 168 } 169 } 170 171 /** 172 * Get Layout Target 173 * 174 * @return string 175 */ 176 public function getLayoutTarget() 177 { 178 return $this->layoutTarget; 179 } 180 181 /** 182 * Set Layout Target 183 * 184 * @param Layout Target $value 185 * @return PHPExcel_Chart_Layout 186 */ 187 public function setLayoutTarget($value) 188 { 189 $this->layoutTarget = $value; 190 return $this; 191 } 192 193 /** 194 * Get X-Mode 195 * 196 * @return string 197 */ 198 public function getXMode() 199 { 200 return $this->xMode; 201 } 202 203 /** 204 * Set X-Mode 205 * 206 * @param X-Mode $value 207 * @return PHPExcel_Chart_Layout 208 */ 209 public function setXMode($value) 210 { 211 $this->xMode = $value; 212 return $this; 213 } 214 215 /** 216 * Get Y-Mode 217 * 218 * @return string 219 */ 220 public function getYMode() 221 { 222 return $this->yMode; 223 } 224 225 /** 226 * Set Y-Mode 227 * 228 * @param Y-Mode $value 229 * @return PHPExcel_Chart_Layout 230 */ 231 public function setYMode($value) 232 { 233 $this->yMode = $value; 234 return $this; 235 } 236 237 /** 238 * Get X-Position 239 * 240 * @return number 241 */ 242 public function getXPosition() 243 { 244 return $this->xPos; 245 } 246 247 /** 248 * Set X-Position 249 * 250 * @param X-Position $value 251 * @return PHPExcel_Chart_Layout 252 */ 253 public function setXPosition($value) 254 { 255 $this->xPos = $value; 256 return $this; 257 } 258 259 /** 260 * Get Y-Position 261 * 262 * @return number 263 */ 264 public function getYPosition() 265 { 266 return $this->yPos; 267 } 268 269 /** 270 * Set Y-Position 271 * 272 * @param Y-Position $value 273 * @return PHPExcel_Chart_Layout 274 */ 275 public function setYPosition($value) 276 { 277 $this->yPos = $value; 278 return $this; 279 } 280 281 /** 282 * Get Width 283 * 284 * @return number 285 */ 286 public function getWidth() 287 { 288 return $this->width; 289 } 290 291 /** 292 * Set Width 293 * 294 * @param Width $value 295 * @return PHPExcel_Chart_Layout 296 */ 297 public function setWidth($value) 298 { 299 $this->width = $value; 300 return $this; 301 } 302 303 /** 304 * Get Height 305 * 306 * @return number 307 */ 308 public function getHeight() 309 { 310 return $this->height; 311 } 312 313 /** 314 * Set Height 315 * 316 * @param Height $value 317 * @return PHPExcel_Chart_Layout 318 */ 319 public function setHeight($value) 320 { 321 $this->height = $value; 322 return $this; 323 } 324 325 326 /** 327 * Get show legend key 328 * 329 * @return boolean 330 */ 331 public function getShowLegendKey() 332 { 333 return $this->showLegendKey; 334 } 335 336 /** 337 * Set show legend key 338 * Specifies that legend keys should be shown in data labels. 339 * 340 * @param boolean $value Show legend key 341 * @return PHPExcel_Chart_Layout 342 */ 343 public function setShowLegendKey($value) 344 { 345 $this->showLegendKey = $value; 346 return $this; 347 } 348 349 /** 350 * Get show value 351 * 352 * @return boolean 353 */ 354 public function getShowVal() 355 { 356 return $this->showVal; 357 } 358 359 /** 360 * Set show val 361 * Specifies that the value should be shown in data labels. 362 * 363 * @param boolean $value Show val 364 * @return PHPExcel_Chart_Layout 365 */ 366 public function setShowVal($value) 367 { 368 $this->showVal = $value; 369 return $this; 370 } 371 372 /** 373 * Get show category name 374 * 375 * @return boolean 376 */ 377 public function getShowCatName() 378 { 379 return $this->showCatName; 380 } 381 382 /** 383 * Set show cat name 384 * Specifies that the category name should be shown in data labels. 385 * 386 * @param boolean $value Show cat name 387 * @return PHPExcel_Chart_Layout 388 */ 389 public function setShowCatName($value) 390 { 391 $this->showCatName = $value; 392 return $this; 393 } 394 395 /** 396 * Get show data series name 397 * 398 * @return boolean 399 */ 400 public function getShowSerName() 401 { 402 return $this->showSerName; 403 } 404 405 /** 406 * Set show ser name 407 * Specifies that the series name should be shown in data labels. 408 * 409 * @param boolean $value Show series name 410 * @return PHPExcel_Chart_Layout 411 */ 412 public function setShowSerName($value) 413 { 414 $this->showSerName = $value; 415 return $this; 416 } 417 418 /** 419 * Get show percentage 420 * 421 * @return boolean 422 */ 423 public function getShowPercent() 424 { 425 return $this->showPercent; 426 } 427 428 /** 429 * Set show percentage 430 * Specifies that the percentage should be shown in data labels. 431 * 432 * @param boolean $value Show percentage 433 * @return PHPExcel_Chart_Layout 434 */ 435 public function setShowPercent($value) 436 { 437 $this->showPercent = $value; 438 return $this; 439 } 440 441 /** 442 * Get show bubble size 443 * 444 * @return boolean 445 */ 446 public function getShowBubbleSize() 447 { 448 return $this->showBubbleSize; 449 } 450 451 /** 452 * Set show bubble size 453 * Specifies that the bubble size should be shown in data labels. 454 * 455 * @param boolean $value Show bubble size 456 * @return PHPExcel_Chart_Layout 457 */ 458 public function setShowBubbleSize($value) 459 { 460 $this->showBubbleSize = $value; 461 return $this; 462 } 463 464 /** 465 * Get show leader lines 466 * 467 * @return boolean 468 */ 469 public function getShowLeaderLines() 470 { 471 return $this->showLeaderLines; 472 } 473 474 /** 475 * Set show leader lines 476 * Specifies that leader lines should be shown in data labels. 477 * 478 * @param boolean $value Show leader lines 479 * @return PHPExcel_Chart_Layout 480 */ 481 public function setShowLeaderLines($value) 482 { 483 $this->showLeaderLines = $value; 484 return $this; 485 } 486 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |