ChartLegend.php in Charts 8
File
modules/charts_highcharts/src/Settings/Highcharts/ChartLegend.php
View source
<?php
namespace Drupal\charts_highcharts\Settings\Highcharts;
class ChartLegend implements \JsonSerializable {
private $layout = 'vertical';
private $align = 'right';
private $verticalAlign = 'top';
private $x = -40;
private $y = 80;
private $floating = TRUE;
private $borderWidth = 1;
private $backgroundColor = '#FCFFC5';
private $shadow = TRUE;
public function getLayout() {
return $this->layout;
}
public function setLayout($layout) {
$this->layout = $layout;
}
public function getAlign() {
return $this->align;
}
public function setAlign($align) {
$this->align = $align;
}
public function getVerticalAlign() {
return $this->verticalAlign;
}
public function setVerticalAlign($verticalAlign) {
$this->verticalAlign = $verticalAlign;
}
public function getX() {
return $this->x;
}
public function setX($x) {
$this->x = $x;
}
public function getY() {
return $this->y;
}
public function setY($y) {
$this->y = $y;
}
public function isFloating() {
return $this->floating;
}
public function setFloating($floating) {
$this->floating = $floating;
}
public function getBorderWidth() {
return $this->borderWidth;
}
public function setBorderWidth($borderWidth) {
$this->borderWidth = $borderWidth;
}
public function getBackgroundColor() {
return $this->backgroundColor;
}
public function setBackgroundColor($backgroundColor) {
$this->backgroundColor = $backgroundColor;
}
public function isShadow() {
return $this->shadow;
}
public function setShadow($shadow) {
$this->shadow = $shadow;
}
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}