class ChartLegend in Charts 8.3
Same name in this branch
- 8.3 modules/charts_billboard/src/Settings/Billboard/ChartLegend.php \Drupal\charts_billboard\Settings\Billboard\ChartLegend
- 8.3 modules/charts_c3/src/Settings/CThree/ChartLegend.php \Drupal\charts_c3\Settings\CThree\ChartLegend
- 8.3 modules/charts_highcharts/src/Settings/Highcharts/ChartLegend.php \Drupal\charts_highcharts\Settings\Highcharts\ChartLegend
Same name and namespace in other branches
- 8 modules/charts_highcharts/src/Settings/Highcharts/ChartLegend.php \Drupal\charts_highcharts\Settings\Highcharts\ChartLegend
Chart Legend.
Hierarchy
- class \Drupal\charts_highcharts\Settings\Highcharts\ChartLegend implements \Drupal\charts_highcharts\Settings\Highcharts\JsonSerializable
Expanded class hierarchy of ChartLegend
1 file declares its use of ChartLegend
- Highcharts.php in modules/
charts_highcharts/ src/ Plugin/ chart/ Highcharts.php
File
- modules/
charts_highcharts/ src/ Settings/ Highcharts/ ChartLegend.php, line 8
Namespace
Drupal\charts_highcharts\Settings\HighchartsView source
class ChartLegend implements \JsonSerializable {
private $layout = 'vertical';
private $align = 'right';
private $verticalAlign = 'top';
private $x = 0;
private $y = 0;
private $floating = TRUE;
private $borderWidth = 1;
private $backgroundColor = '#FCFFC5';
private $shadow = TRUE;
private $enabled = TRUE;
private $itemStyle;
private $rtl = FALSE;
/**
* Get Layout.
*
* @return string
* Layout.
*/
public function getLayout() {
return $this->layout;
}
/**
* Set Layout.
*
* @param string $layout
* Layout.
*/
public function setLayout($layout) {
$this->layout = $layout;
}
/**
* Get Align.
*
* @return string
* Align.
*/
public function getAlign() {
return $this->align;
}
/**
* Set Align.
*
* @param string $align
* Align.
*/
public function setAlign($align) {
$this->align = $align;
}
/**
* Get Vertical Align.
*
* @return string
* Vertical Align.
*/
public function getVerticalAlign() {
return $this->verticalAlign;
}
/**
* Set Vertical Align.
*
* @param string $verticalAlign
* Vertical Align.
*/
public function setVerticalAlign($verticalAlign) {
$this->verticalAlign = $verticalAlign;
}
/**
* Get X.
*
* @return int
* X.
*/
public function getX() {
return $this->x;
}
/**
* Set X.
*
* @param int $x
* X.
*/
public function setX($x) {
$this->x = $x;
}
/**
* Get Y.
*
* @return int
* Y.
*/
public function getY() {
return $this->y;
}
/**
* Set Y.
*
* @param int $y
* Y.
*/
public function setY($y) {
$this->y = $y;
}
/**
* Is Floating.
*
* @return bool
* Floating.
*/
public function isFloating() {
return $this->floating;
}
/**
* Set Floating.
*
* @param bool $floating
* Floating.
*/
public function setFloating($floating) {
$this->floating = $floating;
}
/**
* Get Border Width.
*
* @return int
* Border Width.
*/
public function getBorderWidth() {
return $this->borderWidth;
}
/**
* Set Border Width.
*
* @param int $borderWidth
* Border Width.
*/
public function setBorderWidth($borderWidth) {
$this->borderWidth = $borderWidth;
}
/**
* Get Background Color.
*
* @return string
* Background Color.
*/
public function getBackgroundColor() {
return $this->backgroundColor;
}
/**
* Set Background Color.
*
* @param string $backgroundColor
* Background Color.
*/
public function setBackgroundColor($backgroundColor) {
$this->backgroundColor = $backgroundColor;
}
/**
* Is Shadow.
*
* @return bool
* Shadow.
*/
public function isShadow() {
return $this->shadow;
}
/**
* Set Shadow.
*
* @param bool $shadow
* Shadow.
*/
public function setShadow($shadow) {
$this->shadow = $shadow;
}
/**
* Get Enabled.
*
* @return bool
* Enabled.
*/
public function isEnabled() {
return $this->enabled;
}
/**
* Set Enabled.
*
* @param bool $enabled
* Enabled.
*/
public function setEnabled($enabled) {
$this->enabled = $enabled;
}
/**
* @return mixed
*/
public function getItemStyle() {
return $this->itemStyle;
}
/**
* @param mixed $itemStyle
*/
public function setItemStyle($itemStyle) {
$this->itemStyle = $itemStyle;
}
/**
* Get Direction.
*
* @return bool rtl false or true
*/
public function getDirection() {
return $this->rtl;
}
/**
* Set Direction either rtl false or true.
*
* @param bool $rtl
*/
public function setDirection($rtl) {
$this->rtl = $rtl;
}
/**
* Json Serialize.
*
* @return array
* Json Serialize.
*/
public function jsonSerialize() {
$vars = get_object_vars($this);
return $vars;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
private | property | ||
ChartLegend:: |
public | function | Get Align. | |
ChartLegend:: |
public | function | Get Background Color. | |
ChartLegend:: |
public | function | Get Border Width. | |
ChartLegend:: |
public | function | Get Direction. | |
ChartLegend:: |
public | function | ||
ChartLegend:: |
public | function | Get Layout. | |
ChartLegend:: |
public | function | Get Vertical Align. | |
ChartLegend:: |
public | function | Get X. | |
ChartLegend:: |
public | function | Get Y. | |
ChartLegend:: |
public | function | Get Enabled. | |
ChartLegend:: |
public | function | Is Floating. | |
ChartLegend:: |
public | function | Is Shadow. | |
ChartLegend:: |
public | function | Json Serialize. | |
ChartLegend:: |
public | function | Set Align. | |
ChartLegend:: |
public | function | Set Background Color. | |
ChartLegend:: |
public | function | Set Border Width. | |
ChartLegend:: |
public | function | Set Direction either rtl false or true. | |
ChartLegend:: |
public | function | Set Enabled. | |
ChartLegend:: |
public | function | Set Floating. | |
ChartLegend:: |
public | function | ||
ChartLegend:: |
public | function | Set Layout. | |
ChartLegend:: |
public | function | Set Shadow. | |
ChartLegend:: |
public | function | Set Vertical Align. | |
ChartLegend:: |
public | function | Set X. | |
ChartLegend:: |
public | function | Set Y. |