ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Layout.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_layoutTarget = NULL;
44 
50  private $_xMode = NULL;
51 
57  private $_yMode = NULL;
58 
64  private $_xPos = NULL;
65 
71  private $_yPos = NULL;
72 
78  private $_width = NULL;
79 
85  private $_height = NULL;
86 
93  private $_showLegendKey = NULL;
94 
101  private $_showVal = NULL;
102 
109  private $_showCatName = NULL;
110 
117  private $_showSerName = NULL;
118 
125  private $_showPercent = NULL;
126 
132  private $_showBubbleSize = NULL;
133 
140  private $_showLeaderLines = NULL;
141 
142 
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 
162  public function getLayoutTarget() {
163  return $this->_layoutTarget;
164  }
165 
172  public function setLayoutTarget($value) {
173  $this->_layoutTarget = $value;
174  return $this;
175  }
176 
182  public function getXMode() {
183  return $this->_xMode;
184  }
185 
192  public function setXMode($value) {
193  $this->_xMode = $value;
194  return $this;
195  }
196 
202  public function getYMode() {
203  return $this->_yMode;
204  }
205 
212  public function setYMode($value) {
213  $this->_yMode = $value;
214  return $this;
215  }
216 
222  public function getXPosition() {
223  return $this->_xPos;
224  }
225 
232  public function setXPosition($value) {
233  $this->_xPos = $value;
234  return $this;
235  }
236 
242  public function getYPosition() {
243  return $this->_yPos;
244  }
245 
252  public function setYPosition($value) {
253  $this->_yPos = $value;
254  return $this;
255  }
256 
262  public function getWidth() {
263  return $this->_width;
264  }
265 
272  public function setWidth($value) {
273  $this->_width = $value;
274  return $this;
275  }
276 
282  public function getHeight() {
283  return $this->_height;
284  }
285 
292  public function setHeight($value) {
293  $this->_height = $value;
294  return $this;
295  }
296 
297 
303  public function getShowLegendKey() {
304  return $this->_showLegendKey;
305  }
306 
314  public function setShowLegendKey($value) {
315  $this->_showLegendKey = $value;
316  return $this;
317  }
318 
324  public function getShowVal() {
325  return $this->_showVal;
326  }
327 
335  public function setShowVal($value) {
336  $this->_showVal = $value;
337  return $this;
338  }
339 
345  public function getShowCatName() {
346  return $this->_showCatName;
347  }
348 
356  public function setShowCatName($value) {
357  $this->_showCatName = $value;
358  return $this;
359  }
360 
366  public function getShowSerName() {
367  return $this->_showSerName;
368  }
369 
377  public function setShowSerName($value) {
378  $this->_showSerName = $value;
379  return $this;
380  }
381 
387  public function getShowPercent() {
388  return $this->_showPercent;
389  }
390 
398  public function setShowPercent($value) {
399  $this->_showPercent = $value;
400  return $this;
401  }
402 
408  public function getShowBubbleSize() {
409  return $this->_showBubbleSize;
410  }
411 
419  public function setShowBubbleSize($value) {
420  $this->_showBubbleSize = $value;
421  return $this;
422  }
423 
429  public function getShowLeaderLines() {
431  }
432 
440  public function setShowLeaderLines($value) {
441  $this->_showLeaderLines = $value;
442  return $this;
443  }
444 
445 }
getShowCatName()
Get show category name.
Definition: Layout.php:345
getShowLeaderLines()
Get show leader lines.
Definition: Layout.php:429
getShowBubbleSize()
Get show bubble size.
Definition: Layout.php:408
setHeight($value)
Set Height.
Definition: Layout.php:292
getShowLegendKey()
Get show legend key.
Definition: Layout.php:303
setShowSerName($value)
Set show ser name Specifies that the series name should be shown in data labels.
Definition: Layout.php:377
getXPosition()
Get X-Position.
Definition: Layout.php:222
getShowVal()
Get show value.
Definition: Layout.php:324
getWidth()
Get Width.
Definition: Layout.php:262
setShowLeaderLines($value)
Set show leader lines Specifies that leader lines should be shown in data labels. ...
Definition: Layout.php:440
setWidth($value)
Set Width.
Definition: Layout.php:272
__construct($layout=array())
Create a new PHPExcel_Chart_Layout.
Definition: Layout.php:146
setShowVal($value)
Set show val Specifies that the value should be shown in data labels.
Definition: Layout.php:335
setShowLegendKey($value)
Set show legend key Specifies that legend keys should be shown in data labels.
Definition: Layout.php:314
setXMode($value)
Set X-Mode.
Definition: Layout.php:192
getHeight()
Get Height.
Definition: Layout.php:282
setShowBubbleSize($value)
Set show bubble size Specifies that the bubble size should be shown in data labels.
Definition: Layout.php:419
setShowCatName($value)
Set show cat name Specifies that the category name should be shown in data labels.
Definition: Layout.php:356
Create styles array
The data for the language used.
getShowPercent()
Get show percentage.
Definition: Layout.php:387
setYMode($value)
Set Y-Mode.
Definition: Layout.php:212
getYPosition()
Get Y-Position.
Definition: Layout.php:242
getLayoutTarget()
Get Layout Target.
Definition: Layout.php:162
setXPosition($value)
Set X-Position.
Definition: Layout.php:232
getXMode()
Get X-Mode.
Definition: Layout.php:182
setYPosition($value)
Set Y-Position.
Definition: Layout.php:252
getShowSerName()
Get show data series name.
Definition: Layout.php:366
setLayoutTarget($value)
Set Layout Target.
Definition: Layout.php:172
setShowPercent($value)
Set show percentage Specifies that the percentage should be shown in data labels. ...
Definition: Layout.php:398
getYMode()
Get Y-Mode.
Definition: Layout.php:202