Subversion Repositories eFlore/Applications.cel

Rev

Rev 2388 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2388 jpm 1
<?php
2
/**
3
 * PHPExcel
4
 *
5
 * Copyright (c) 2006 - 2013 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 - 2013 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 - 2013 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
	 * show legend key
89
	 * Specifies that legend keys should be shown in data labels
90
	 *
91
	 * @var boolean
92
	 */
93
	private $_showLegendKey	= NULL;
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	= NULL;
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	= NULL;
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	= NULL;
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	= NULL;
126
 
127
	/**
128
	 * show bubble size
129
	 *
130
	 * @var boolean
131
	 */
132
	private $_showBubbleSize	= NULL;
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	= NULL;
141
 
142
 
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
	}
156
 
157
	/**
158
	 * Get Layout Target
159
	 *
160
	 * @return string
161
	 */
162
	public function getLayoutTarget() {
163
		return $this->_layoutTarget;
164
	}
165
 
166
	/**
167
	 * Set Layout Target
168
	 *
169
	 * @param Layout Target $value
170
	 */
171
	public function setLayoutTarget($value) {
172
		$this->_layoutTarget = $value;
173
	}
174
 
175
	/**
176
	 * Get X-Mode
177
	 *
178
	 * @return string
179
	 */
180
	public function getXMode() {
181
		return $this->_xMode;
182
	}
183
 
184
	/**
185
	 * Set X-Mode
186
	 *
187
	 * @param X-Mode $value
188
	 */
189
	public function setXMode($value) {
190
		$this->_xMode = $value;
191
	}
192
 
193
	/**
194
	 * Get Y-Mode
195
	 *
196
	 * @return string
197
	 */
198
	public function getYMode() {
199
		return $this->_xMode;
200
	}
201
 
202
	/**
203
	 * Set Y-Mode
204
	 *
205
	 * @param Y-Mode $value
206
	 */
207
	public function setYMode($value) {
208
		$this->_xMode = $value;
209
	}
210
 
211
	/**
212
	 * Get X-Position
213
	 *
214
	 * @return number
215
	 */
216
	public function getXPosition() {
217
		return $this->_xPos;
218
	}
219
 
220
	/**
221
	 * Set X-Position
222
	 *
223
	 * @param X-Position $value
224
	 */
225
	public function setXPosition($value) {
226
		$this->_xPos = $value;
227
	}
228
 
229
	/**
230
	 * Get Y-Position
231
	 *
232
	 * @return number
233
	 */
234
	public function getYPosition() {
235
		return $this->_yPos;
236
	}
237
 
238
	/**
239
	 * Set Y-Position
240
	 *
241
	 * @param Y-Position $value
242
	 */
243
	public function setYPosition($value) {
244
		$this->_yPos = $value;
245
	}
246
 
247
	/**
248
	 * Get Width
249
	 *
250
	 * @return number
251
	 */
252
	public function getWidth() {
253
		return $this->_width;
254
	}
255
 
256
	/**
257
	 * Set Width
258
	 *
259
	 * @param Width $value
260
	 */
261
	public function setWidth($value) {
262
		$this->_width = $value;
263
	}
264
 
265
	/**
266
	 * Get Height
267
	 *
268
	 * @return number
269
	 */
270
	public function getHeight() {
271
		return $this->_height;
272
	}
273
 
274
	/**
275
	 * Set Height
276
	 *
277
	 * @param Height $value
278
	 */
279
	public function setHeight($value) {
280
		$this->_height = $value;
281
	}
282
 
283
 
284
	/**
285
	 * Get show legend key
286
	 *
287
	 * @return boolean
288
	 */
289
	public function getShowLegendKey() {
290
		return $this->_showLegendKey;
291
	}
292
 
293
	/**
294
	 * Set show legend key
295
	 * Specifies that legend keys should be shown in data labels.
296
	 *
297
	 * @param boolean $value		Show legend key
298
	 */
299
	public function setShowLegendKey($value) {
300
		$this->_showLegendKey = $value;
301
	}
302
 
303
	/**
304
	 * Get show value
305
	 *
306
	 * @return boolean
307
	 */
308
	public function getShowVal() {
309
		return $this->_showVal;
310
	}
311
 
312
	/**
313
	 * Set show val
314
	 * Specifies that the value should be shown in data labels.
315
	 *
316
	 * @param boolean $value		Show val
317
	 */
318
	public function setShowVal($value) {
319
		$this->_showVal = $value;
320
	}
321
 
322
	/**
323
	 * Get show category name
324
	 *
325
	 * @return boolean
326
	 */
327
	public function getShowCatName() {
328
		return $this->_showCatName;
329
	}
330
 
331
	/**
332
	 * Set show cat name
333
	 * Specifies that the category name should be shown in data labels.
334
	 *
335
	 * @param boolean $value		Show cat name
336
	 */
337
	public function setShowCatName($value) {
338
		$this->_showCatName = $value;
339
	}
340
 
341
	/**
342
	 * Get show data series name
343
	 *
344
	 * @return boolean
345
	 */
346
	public function getShowSerName() {
347
		return $this->_showSerName;
348
	}
349
 
350
	/**
351
	 * Set show ser name
352
	 * Specifies that the series name should be shown in data labels.
353
	 *
354
	 * @param boolean $value		Show ser name
355
	 */
356
	public function setShowSerName($value) {
357
		$this->_showSerName = $value;
358
	}
359
 
360
	/**
361
	 * Get show percentage
362
	 *
363
	 * @return boolean
364
	 */
365
	public function getShowPercent() {
366
		return $this->_showPercent;
367
	}
368
 
369
	/**
370
	 * Set show percentage
371
	 * Specifies that the percentage should be shown in data labels.
372
	 *
373
	 * @param boolean $value		Show percentage
374
	 */
375
	public function setShowPercent($value) {
376
		$this->_showPercent = $value;
377
	}
378
 
379
	/**
380
	 * Get show bubble size
381
	 *
382
	 * @return boolean
383
	 */
384
	public function getShowBubbleSize() {
385
		return $this->_showBubbleSize;
386
	}
387
 
388
	/**
389
	 * Set show bubble size
390
	 * Specifies that the bubble size should be shown in data labels.
391
	 *
392
	 * @param boolean $value		Show bubble size
393
	 */
394
	public function setShowBubbleSize($value) {
395
		$this->_showBubbleSize = $value;
396
	}
397
 
398
	/**
399
	 * Get show leader lines
400
	 *
401
	 * @return boolean
402
	 */
403
	public function getShowLeaderLines() {
404
		return $this->_showLeaderLines;
405
	}
406
 
407
	/**
408
	 * Set show leader lines
409
	 * Specifies that leader lines should be shown in data labels.
410
	 *
411
	 * @param boolean $value		Show leader lines
412
	 */
413
	public function setShowLeaderLines($value) {
414
		$this->_showLeaderLines = $value;
415
	}
416
 
417
}