PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.0.10
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.0.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Layout.php +344 -385 3.1.23.0.10 View file →
@@ -1,9 +1,9 @@
1 1 <?php
2 2 /**
3 3 * PHPExcel
4 4 *
5 - * Copyright (c) 2006 - 2015 PHPExcel
5 + * Copyright (c) 2006 - 2014 PHPExcel
6 6 *
7 7 * This library is free software; you can redistribute it and/or
8 8 * modify it under the terms of the GNU Lesser General Public
9 9 * License as published by the Free Software Foundation; either
@@ -17,13 +17,13 @@
17 17 * You should have received a copy of the GNU Lesser General Public
18 18 * License along with this library; if not, write to the Free Software
19 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 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##
21 + * @category PHPExcel
22 + * @package PHPExcel_Chart
23 + * @copyright Copyright (c) 2006 - 2014 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 26 */
27 27
28 28
29 29 /**
@@ -28,459 +28,418 @@
28 28
29 29 /**
30 30 * PHPExcel_Chart_Layout
31 31 *
32 - * @category PHPExcel
33 - * @package PHPExcel_Chart
34 - * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
32 + * @category PHPExcel
33 + * @package PHPExcel_Chart
34 + * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 35 */
36 36 class PHPExcel_Chart_Layout
37 37 {
38 - /**
39 - * layoutTarget
40 - *
41 - * @var string
42 - */
43 - private $layoutTarget;
38 + /**
39 + * layoutTarget
40 + *
41 + * @var string
42 + */
43 + private $_layoutTarget = NULL;
44 44
45 - /**
46 - * X Mode
47 - *
48 - * @var string
49 - */
50 - private $xMode;
45 + /**
46 + * X Mode
47 + *
48 + * @var string
49 + */
50 + private $_xMode = NULL;
51 51
52 - /**
53 - * Y Mode
54 - *
55 - * @var string
56 - */
57 - private $yMode;
52 + /**
53 + * Y Mode
54 + *
55 + * @var string
56 + */
57 + private $_yMode = NULL;
58 58
59 - /**
60 - * X-Position
61 - *
62 - * @var float
63 - */
64 - private $xPos;
59 + /**
60 + * X-Position
61 + *
62 + * @var float
63 + */
64 + private $_xPos = NULL;
65 65
66 - /**
67 - * Y-Position
68 - *
69 - * @var float
70 - */
71 - private $yPos;
66 + /**
67 + * Y-Position
68 + *
69 + * @var float
70 + */
71 + private $_yPos = NULL;
72 72
73 - /**
74 - * width
75 - *
76 - * @var float
77 - */
78 - private $width;
73 + /**
74 + * width
75 + *
76 + * @var float
77 + */
78 + private $_width = NULL;
79 79
80 - /**
81 - * height
82 - *
83 - * @var float
84 - */
85 - private $height;
80 + /**
81 + * height
82 + *
83 + * @var float
84 + */
85 + private $_height = NULL;
86 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;
87 + /**
88 + * show legend key
89 + * Specifies that legend keys should be shown in data labels
90 + *
91 + * @var boolean
92 + */
93 + private $_showLegendKey = NULL;
94 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;
95 + /**
96 + * show value
97 + * Specifies that the value should be shown in a data label.
98 + *
99 + * @var boolean
100 + */
101 + private $_showVal = NULL;
102 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;
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 = NULL;
110 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;
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 = NULL;
118 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;
119 + /**
120 + * show percentage
121 + * Specifies that the percentage should be shown in the data label.
122 + *
123 + * @var boolean
124 + */
125 + private $_showPercent = NULL;
126 126
127 - /**
128 - * show bubble size
129 - *
130 - * @var boolean
131 - */
132 - private $showBubbleSize;
127 + /**
128 + * show bubble size
129 + *
130 + * @var boolean
131 + */
132 + private $_showBubbleSize = NULL;
133 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;
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 = NULL;
141 141
142 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 - }
143 + /**
144 + * Create a new PHPExcel_Chart_Layout
145 + */
146 + public function __construct($layout=array())
147 + {
148 + if (isset($layout['layoutTarget'])) { $this->_layoutTarget = $layout['layoutTarget']; }
149 + if (isset($layout['xMode'])) { $this->_xMode = $layout['xMode']; }
150 + if (isset($layout['yMode'])) { $this->_yMode = $layout['yMode']; }
151 + if (isset($layout['x'])) { $this->_xPos = (float) $layout['x']; }
152 + if (isset($layout['y'])) { $this->_yPos = (float) $layout['y']; }
153 + if (isset($layout['w'])) { $this->_width = (float) $layout['w']; }
154 + if (isset($layout['h'])) { $this->_height = (float) $layout['h']; }
155 + }
170 156
171 - /**
172 - * Get Layout Target
173 - *
174 - * @return string
175 - */
176 - public function getLayoutTarget()
177 - {
178 - return $this->layoutTarget;
179 - }
157 + /**
158 + * Get Layout Target
159 + *
160 + * @return string
161 + */
162 + public function getLayoutTarget() {
163 + return $this->_layoutTarget;
164 + }
180 165
181 - /**
182 - * Set Layout Target
183 - *
184 - * @param Layout Target $value
166 + /**
167 + * Set Layout Target
168 + *
169 + * @param Layout Target $value
185 170 * @return PHPExcel_Chart_Layout
186 - */
187 - public function setLayoutTarget($value)
188 - {
189 - $this->layoutTarget = $value;
171 + */
172 + public function setLayoutTarget($value) {
173 + $this->_layoutTarget = $value;
190 174 return $this;
191 - }
175 + }
192 176
193 - /**
194 - * Get X-Mode
195 - *
196 - * @return string
197 - */
198 - public function getXMode()
199 - {
200 - return $this->xMode;
201 - }
177 + /**
178 + * Get X-Mode
179 + *
180 + * @return string
181 + */
182 + public function getXMode() {
183 + return $this->_xMode;
184 + }
202 185
203 - /**
204 - * Set X-Mode
205 - *
206 - * @param X-Mode $value
186 + /**
187 + * Set X-Mode
188 + *
189 + * @param X-Mode $value
207 190 * @return PHPExcel_Chart_Layout
208 - */
209 - public function setXMode($value)
210 - {
211 - $this->xMode = $value;
191 + */
192 + public function setXMode($value) {
193 + $this->_xMode = $value;
212 194 return $this;
213 - }
195 + }
214 196
215 - /**
216 - * Get Y-Mode
217 - *
218 - * @return string
219 - */
220 - public function getYMode()
221 - {
222 - return $this->yMode;
223 - }
197 + /**
198 + * Get Y-Mode
199 + *
200 + * @return string
201 + */
202 + public function getYMode() {
203 + return $this->_yMode;
204 + }
224 205
225 - /**
226 - * Set Y-Mode
227 - *
228 - * @param Y-Mode $value
206 + /**
207 + * Set Y-Mode
208 + *
209 + * @param Y-Mode $value
229 210 * @return PHPExcel_Chart_Layout
230 - */
231 - public function setYMode($value)
232 - {
233 - $this->yMode = $value;
211 + */
212 + public function setYMode($value) {
213 + $this->_yMode = $value;
234 214 return $this;
235 - }
215 + }
236 216
237 - /**
238 - * Get X-Position
239 - *
240 - * @return number
241 - */
242 - public function getXPosition()
243 - {
244 - return $this->xPos;
245 - }
217 + /**
218 + * Get X-Position
219 + *
220 + * @return number
221 + */
222 + public function getXPosition() {
223 + return $this->_xPos;
224 + }
246 225
247 - /**
248 - * Set X-Position
249 - *
250 - * @param X-Position $value
226 + /**
227 + * Set X-Position
228 + *
229 + * @param X-Position $value
251 230 * @return PHPExcel_Chart_Layout
252 - */
253 - public function setXPosition($value)
254 - {
255 - $this->xPos = $value;
231 + */
232 + public function setXPosition($value) {
233 + $this->_xPos = $value;
256 234 return $this;
257 - }
235 + }
258 236
259 - /**
260 - * Get Y-Position
261 - *
262 - * @return number
263 - */
264 - public function getYPosition()
265 - {
266 - return $this->yPos;
267 - }
237 + /**
238 + * Get Y-Position
239 + *
240 + * @return number
241 + */
242 + public function getYPosition() {
243 + return $this->_yPos;
244 + }
268 245
269 - /**
270 - * Set Y-Position
271 - *
272 - * @param Y-Position $value
246 + /**
247 + * Set Y-Position
248 + *
249 + * @param Y-Position $value
273 250 * @return PHPExcel_Chart_Layout
274 - */
275 - public function setYPosition($value)
276 - {
277 - $this->yPos = $value;
251 + */
252 + public function setYPosition($value) {
253 + $this->_yPos = $value;
278 254 return $this;
279 - }
255 + }
280 256
281 - /**
282 - * Get Width
283 - *
284 - * @return number
285 - */
286 - public function getWidth()
287 - {
288 - return $this->width;
289 - }
257 + /**
258 + * Get Width
259 + *
260 + * @return number
261 + */
262 + public function getWidth() {
263 + return $this->_width;
264 + }
290 265
291 - /**
292 - * Set Width
293 - *
294 - * @param Width $value
266 + /**
267 + * Set Width
268 + *
269 + * @param Width $value
295 270 * @return PHPExcel_Chart_Layout
296 - */
297 - public function setWidth($value)
298 - {
299 - $this->width = $value;
271 + */
272 + public function setWidth($value) {
273 + $this->_width = $value;
300 274 return $this;
301 - }
275 + }
302 276
303 - /**
304 - * Get Height
305 - *
306 - * @return number
307 - */
308 - public function getHeight()
309 - {
310 - return $this->height;
311 - }
277 + /**
278 + * Get Height
279 + *
280 + * @return number
281 + */
282 + public function getHeight() {
283 + return $this->_height;
284 + }
312 285
313 - /**
314 - * Set Height
315 - *
316 - * @param Height $value
286 + /**
287 + * Set Height
288 + *
289 + * @param Height $value
317 290 * @return PHPExcel_Chart_Layout
318 - */
319 - public function setHeight($value)
320 - {
321 - $this->height = $value;
291 + */
292 + public function setHeight($value) {
293 + $this->_height = $value;
322 294 return $this;
323 - }
295 + }
324 296
325 297
326 - /**
327 - * Get show legend key
328 - *
329 - * @return boolean
330 - */
331 - public function getShowLegendKey()
332 - {
333 - return $this->showLegendKey;
334 - }
298 + /**
299 + * Get show legend key
300 + *
301 + * @return boolean
302 + */
303 + public function getShowLegendKey() {
304 + return $this->_showLegendKey;
305 + }
335 306
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
307 + /**
308 + * Set show legend key
309 + * Specifies that legend keys should be shown in data labels.
310 + *
311 + * @param boolean $value Show legend key
341 312 * @return PHPExcel_Chart_Layout
342 - */
343 - public function setShowLegendKey($value)
344 - {
345 - $this->showLegendKey = $value;
313 + */
314 + public function setShowLegendKey($value) {
315 + $this->_showLegendKey = $value;
346 316 return $this;
347 - }
317 + }
348 318
349 - /**
350 - * Get show value
351 - *
352 - * @return boolean
353 - */
354 - public function getShowVal()
355 - {
356 - return $this->showVal;
357 - }
319 + /**
320 + * Get show value
321 + *
322 + * @return boolean
323 + */
324 + public function getShowVal() {
325 + return $this->_showVal;
326 + }
358 327
359 - /**
360 - * Set show val
361 - * Specifies that the value should be shown in data labels.
362 - *
363 - * @param boolean $value Show val
328 + /**
329 + * Set show val
330 + * Specifies that the value should be shown in data labels.
331 + *
332 + * @param boolean $value Show val
364 333 * @return PHPExcel_Chart_Layout
365 - */
366 - public function setShowVal($value)
367 - {
368 - $this->showVal = $value;
334 + */
335 + public function setShowVal($value) {
336 + $this->_showVal = $value;
369 337 return $this;
370 - }
338 + }
371 339
372 - /**
373 - * Get show category name
374 - *
375 - * @return boolean
376 - */
377 - public function getShowCatName()
378 - {
379 - return $this->showCatName;
380 - }
340 + /**
341 + * Get show category name
342 + *
343 + * @return boolean
344 + */
345 + public function getShowCatName() {
346 + return $this->_showCatName;
347 + }
381 348
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
349 + /**
350 + * Set show cat name
351 + * Specifies that the category name should be shown in data labels.
352 + *
353 + * @param boolean $value Show cat name
387 354 * @return PHPExcel_Chart_Layout
388 - */
389 - public function setShowCatName($value)
390 - {
391 - $this->showCatName = $value;
355 + */
356 + public function setShowCatName($value) {
357 + $this->_showCatName = $value;
392 358 return $this;
393 - }
359 + }
394 360
395 - /**
396 - * Get show data series name
397 - *
398 - * @return boolean
399 - */
400 - public function getShowSerName()
401 - {
402 - return $this->showSerName;
403 - }
361 + /**
362 + * Get show data series name
363 + *
364 + * @return boolean
365 + */
366 + public function getShowSerName() {
367 + return $this->_showSerName;
368 + }
404 369
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
370 + /**
371 + * Set show ser name
372 + * Specifies that the series name should be shown in data labels.
373 + *
374 + * @param boolean $value Show series name
410 375 * @return PHPExcel_Chart_Layout
411 - */
412 - public function setShowSerName($value)
413 - {
414 - $this->showSerName = $value;
376 + */
377 + public function setShowSerName($value) {
378 + $this->_showSerName = $value;
415 379 return $this;
416 - }
380 + }
417 381
418 - /**
419 - * Get show percentage
420 - *
421 - * @return boolean
422 - */
423 - public function getShowPercent()
424 - {
425 - return $this->showPercent;
426 - }
382 + /**
383 + * Get show percentage
384 + *
385 + * @return boolean
386 + */
387 + public function getShowPercent() {
388 + return $this->_showPercent;
389 + }
427 390
428 - /**
429 - * Set show percentage
430 - * Specifies that the percentage should be shown in data labels.
431 - *
432 - * @param boolean $value Show percentage
391 + /**
392 + * Set show percentage
393 + * Specifies that the percentage should be shown in data labels.
394 + *
395 + * @param boolean $value Show percentage
433 396 * @return PHPExcel_Chart_Layout
434 - */
435 - public function setShowPercent($value)
436 - {
437 - $this->showPercent = $value;
397 + */
398 + public function setShowPercent($value) {
399 + $this->_showPercent = $value;
438 400 return $this;
439 - }
401 + }
440 402
441 - /**
442 - * Get show bubble size
443 - *
444 - * @return boolean
445 - */
446 - public function getShowBubbleSize()
447 - {
448 - return $this->showBubbleSize;
449 - }
403 + /**
404 + * Get show bubble size
405 + *
406 + * @return boolean
407 + */
408 + public function getShowBubbleSize() {
409 + return $this->_showBubbleSize;
410 + }
450 411
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
412 + /**
413 + * Set show bubble size
414 + * Specifies that the bubble size should be shown in data labels.
415 + *
416 + * @param boolean $value Show bubble size
456 417 * @return PHPExcel_Chart_Layout
457 - */
458 - public function setShowBubbleSize($value)
459 - {
460 - $this->showBubbleSize = $value;
418 + */
419 + public function setShowBubbleSize($value) {
420 + $this->_showBubbleSize = $value;
461 421 return $this;
462 - }
422 + }
463 423
464 - /**
465 - * Get show leader lines
466 - *
467 - * @return boolean
468 - */
469 - public function getShowLeaderLines()
470 - {
471 - return $this->showLeaderLines;
472 - }
424 + /**
425 + * Get show leader lines
426 + *
427 + * @return boolean
428 + */
429 + public function getShowLeaderLines() {
430 + return $this->_showLeaderLines;
431 + }
473 432
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
433 + /**
434 + * Set show leader lines
435 + * Specifies that leader lines should be shown in data labels.
436 + *
437 + * @param boolean $value Show leader lines
479 438 * @return PHPExcel_Chart_Layout
480 - */
481 - public function setShowLeaderLines($value)
482 - {
483 - $this->showLeaderLines = $value;
439 + */
440 + public function setShowLeaderLines($value) {
441 + $this->_showLeaderLines = $value;
484 442 return $this;
485 - }
443 + }
444 +
486 445 }