You are here

class ChartLegend in Charts 8

Same name and namespace in other branches
  1. 8.3 modules/charts_highcharts/src/Settings/Highcharts/ChartLegend.php \Drupal\charts_highcharts\Settings\Highcharts\ChartLegend

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
charts_highcharts.module in modules/charts_highcharts/charts_highcharts.module
Charts module integration with Highcharts library.

File

modules/charts_highcharts/src/Settings/Highcharts/ChartLegend.php, line 5

Namespace

Drupal\charts_highcharts\Settings\Highcharts
View source
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;

  /**
   * @return string
   */
  public function getLayout() {
    return $this->layout;
  }

  /**
   * @param string $layout
   */
  public function setLayout($layout) {
    $this->layout = $layout;
  }

  /**
   * @return string
   */
  public function getAlign() {
    return $this->align;
  }

  /**
   * @param string $align
   */
  public function setAlign($align) {
    $this->align = $align;
  }

  /**
   * @return string
   */
  public function getVerticalAlign() {
    return $this->verticalAlign;
  }

  /**
   * @param string $verticalAlign
   */
  public function setVerticalAlign($verticalAlign) {
    $this->verticalAlign = $verticalAlign;
  }

  /**
   * @return int
   */
  public function getX() {
    return $this->x;
  }

  /**
   * @param int $x
   */
  public function setX($x) {
    $this->x = $x;
  }

  /**
   * @return int
   */
  public function getY() {
    return $this->y;
  }

  /**
   * @param int $y
   */
  public function setY($y) {
    $this->y = $y;
  }

  /**
   * @return boolean
   */
  public function isFloating() {
    return $this->floating;
  }

  /**
   * @param boolean $floating
   */
  public function setFloating($floating) {
    $this->floating = $floating;
  }

  /**
   * @return int
   */
  public function getBorderWidth() {
    return $this->borderWidth;
  }

  /**
   * @param int $borderWidth
   */
  public function setBorderWidth($borderWidth) {
    $this->borderWidth = $borderWidth;
  }

  /**
   * @return string
   */
  public function getBackgroundColor() {
    return $this->backgroundColor;
  }

  /**
   * @param string $backgroundColor
   */
  public function setBackgroundColor($backgroundColor) {
    $this->backgroundColor = $backgroundColor;
  }

  /**
   * @return boolean
   */
  public function isShadow() {
    return $this->shadow;
  }

  /**
   * @param boolean $shadow
   */
  public function setShadow($shadow) {
    $this->shadow = $shadow;
  }

  /**
   * @return array
   */
  public function jsonSerialize() {
    $vars = get_object_vars($this);
    return $vars;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ChartLegend::$align private property
ChartLegend::$backgroundColor private property
ChartLegend::$borderWidth private property
ChartLegend::$floating private property
ChartLegend::$layout private property
ChartLegend::$shadow private property
ChartLegend::$verticalAlign private property
ChartLegend::$x private property
ChartLegend::$y private property
ChartLegend::getAlign public function
ChartLegend::getBackgroundColor public function
ChartLegend::getBorderWidth public function
ChartLegend::getLayout public function
ChartLegend::getVerticalAlign public function
ChartLegend::getX public function
ChartLegend::getY public function
ChartLegend::isFloating public function
ChartLegend::isShadow public function
ChartLegend::jsonSerialize public function
ChartLegend::setAlign public function
ChartLegend::setBackgroundColor public function
ChartLegend::setBorderWidth public function
ChartLegend::setFloating public function
ChartLegend::setLayout public function
ChartLegend::setShadow public function
ChartLegend::setVerticalAlign public function
ChartLegend::setX public function
ChartLegend::setY public function