ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Layout.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class Layout
6 {
12  private $layoutTarget;
13 
19  private $xMode;
20 
26  private $yMode;
27 
33  private $xPos;
34 
40  private $yPos;
41 
47  private $width;
48 
54  private $height;
55 
62  private $showLegendKey;
63 
70  private $showVal;
71 
78  private $showCatName;
79 
86  private $showSerName;
87 
94  private $showPercent;
95 
102 
110 
114  public function __construct(array $layout = [])
115  {
116  if (isset($layout['layoutTarget'])) {
117  $this->layoutTarget = $layout['layoutTarget'];
118  }
119  if (isset($layout['xMode'])) {
120  $this->xMode = $layout['xMode'];
121  }
122  if (isset($layout['yMode'])) {
123  $this->yMode = $layout['yMode'];
124  }
125  if (isset($layout['x'])) {
126  $this->xPos = (float) $layout['x'];
127  }
128  if (isset($layout['y'])) {
129  $this->yPos = (float) $layout['y'];
130  }
131  if (isset($layout['w'])) {
132  $this->width = (float) $layout['w'];
133  }
134  if (isset($layout['h'])) {
135  $this->height = (float) $layout['h'];
136  }
137  }
138 
144  public function getLayoutTarget()
145  {
146  return $this->layoutTarget;
147  }
148 
156  public function setLayoutTarget($value)
157  {
158  $this->layoutTarget = $value;
159 
160  return $this;
161  }
162 
168  public function getXMode()
169  {
170  return $this->xMode;
171  }
172 
180  public function setXMode($value)
181  {
182  $this->xMode = (string) $value;
183 
184  return $this;
185  }
186 
192  public function getYMode()
193  {
194  return $this->yMode;
195  }
196 
204  public function setYMode($value)
205  {
206  $this->yMode = (string) $value;
207 
208  return $this;
209  }
210 
216  public function getXPosition()
217  {
218  return $this->xPos;
219  }
220 
228  public function setXPosition($value)
229  {
230  $this->xPos = (float) $value;
231 
232  return $this;
233  }
234 
240  public function getYPosition()
241  {
242  return $this->yPos;
243  }
244 
252  public function setYPosition($value)
253  {
254  $this->yPos = (float) $value;
255 
256  return $this;
257  }
258 
264  public function getWidth()
265  {
266  return $this->width;
267  }
268 
276  public function setWidth($value)
277  {
278  $this->width = $value;
279 
280  return $this;
281  }
282 
288  public function getHeight()
289  {
290  return $this->height;
291  }
292 
300  public function setHeight($value)
301  {
302  $this->height = $value;
303 
304  return $this;
305  }
306 
312  public function getShowLegendKey()
313  {
314  return $this->showLegendKey;
315  }
316 
325  public function setShowLegendKey($value)
326  {
327  $this->showLegendKey = $value;
328 
329  return $this;
330  }
331 
337  public function getShowVal()
338  {
339  return $this->showVal;
340  }
341 
350  public function setShowVal($value)
351  {
352  $this->showVal = $value;
353 
354  return $this;
355  }
356 
362  public function getShowCatName()
363  {
364  return $this->showCatName;
365  }
366 
375  public function setShowCatName($value)
376  {
377  $this->showCatName = $value;
378 
379  return $this;
380  }
381 
387  public function getShowSerName()
388  {
389  return $this->showSerName;
390  }
391 
400  public function setShowSerName($value)
401  {
402  $this->showSerName = $value;
403 
404  return $this;
405  }
406 
412  public function getShowPercent()
413  {
414  return $this->showPercent;
415  }
416 
425  public function setShowPercent($value)
426  {
427  $this->showPercent = $value;
428 
429  return $this;
430  }
431 
437  public function getShowBubbleSize()
438  {
439  return $this->showBubbleSize;
440  }
441 
450  public function setShowBubbleSize($value)
451  {
452  $this->showBubbleSize = $value;
453 
454  return $this;
455  }
456 
462  public function getShowLeaderLines()
463  {
464  return $this->showLeaderLines;
465  }
466 
475  public function setShowLeaderLines($value)
476  {
477  $this->showLeaderLines = $value;
478 
479  return $this;
480  }
481 }
getShowPercent()
Get show percentage.
Definition: Layout.php:412
setShowBubbleSize($value)
Set show bubble size Specifies that the bubble size should be shown in data labels.
Definition: Layout.php:450
setShowPercent($value)
Set show percentage Specifies that the percentage should be shown in data labels. ...
Definition: Layout.php:425
getShowLeaderLines()
Get show leader lines.
Definition: Layout.php:462
getShowLegendKey()
Get show legend key.
Definition: Layout.php:312
getShowCatName()
Get show category name.
Definition: Layout.php:362
getShowBubbleSize()
Get show bubble size.
Definition: Layout.php:437
setShowLeaderLines($value)
Set show leader lines Specifies that leader lines should be shown in data labels. ...
Definition: Layout.php:475
setShowSerName($value)
Set show ser name Specifies that the series name should be shown in data labels.
Definition: Layout.php:400
setLayoutTarget($value)
Set Layout Target.
Definition: Layout.php:156
setYPosition($value)
Set Y-Position.
Definition: Layout.php:252
__construct(array $layout=[])
Create a new Layout.
Definition: Layout.php:114
setXPosition($value)
Set X-Position.
Definition: Layout.php:228
setShowVal($value)
Set show val Specifies that the value should be shown in data labels.
Definition: Layout.php:350
getShowSerName()
Get show data series name.
Definition: Layout.php:387
setYMode($value)
Set Y-Mode.
Definition: Layout.php:204
setHeight($value)
Set Height.
Definition: Layout.php:300
getLayoutTarget()
Get Layout Target.
Definition: Layout.php:144
setXMode($value)
Set X-Mode.
Definition: Layout.php:180
setShowLegendKey($value)
Set show legend key Specifies that legend keys should be shown in data labels.
Definition: Layout.php:325
setShowCatName($value)
Set show cat name Specifies that the category name should be shown in data labels.
Definition: Layout.php:375