You are here

class ChartArea in Charts 8.3

Same name and namespace in other branches
  1. 8 modules/charts_google/src/Settings/Google/ChartArea.php \Drupal\charts_google\Settings\Google\ChartArea

Class ChartArea.

@package Drupal\charts_google\Settings\Google

Hierarchy

  • class \Drupal\charts_google\Settings\Google\ChartArea implements \Drupal\charts_google\Settings\Google\JsonSerializable

Expanded class hierarchy of ChartArea

1 file declares its use of ChartArea
Google.php in modules/charts_google/src/Plugin/chart/Google.php

File

modules/charts_google/src/Settings/Google/ChartArea.php, line 10

Namespace

Drupal\charts_google\Settings\Google
View source
class ChartArea implements \JsonSerializable {

  /**
   * Chart area width.
   *
   * @var mixed
   */
  private $width;

  /**
   * Chart area height.
   *
   * @var mixed
   */
  private $height;

  /**
   * How far to draw the chart from the top border.
   *
   * @var mixed
   */
  private $top;

  /**
   * How far to draw the chart from the left border.
   *
   * @var mixed
   */
  private $left;

  /**
   * Gets the chart area width.
   *
   * @return mixed
   *   Width.
   */
  public function getWidth() {
    return $this->width;
  }

  /**
   * Sets the chart area width.
   *
   * @param mixed $width
   *   Width.
   */
  public function setWidth($width) {
    $this->width = $width;
  }

  /**
   * Gets the chart area height.
   *
   * @return mixed
   *   Height.
   */
  public function getHeight() {
    return $this->height;
  }

  /**
   * Sets the chart area height.
   *
   * @param mixed $height
   *   Height.
   */
  public function setHeight($height) {
    $this->height = $height;
  }

  /**
   * Gets how far to draw the chart from the top border.
   *
   * @return mixed
   *   Padding Top.
   */
  public function getPaddingTop() {
    return $this->top;
  }

  /**
   * Sets how far to draw the chart from the top border.
   *
   * @param mixed $top
   *   Padding Top.
   */
  public function setPaddingTop($top) {
    $this->top = $top;
  }

  /**
   * Gets how far to draw the chart from the left border.
   *
   * @return mixed
   *   Padding Left.
   */
  public function getPaddingLeft() {
    return $this->left;
  }

  /**
   * Sets how far to draw the chart from the left border.
   *
   * @param mixed $left
   *   Padding Left.
   */
  public function setPaddingLeft($left) {
    $this->left = $left;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
ChartArea::$height private property Chart area height.
ChartArea::$left private property How far to draw the chart from the left border.
ChartArea::$top private property How far to draw the chart from the top border.
ChartArea::$width private property Chart area width.
ChartArea::getHeight public function Gets the chart area height.
ChartArea::getPaddingLeft public function Gets how far to draw the chart from the left border.
ChartArea::getPaddingTop public function Gets how far to draw the chart from the top border.
ChartArea::getWidth public function Gets the chart area width.
ChartArea::jsonSerialize public function Json Serialize.
ChartArea::setHeight public function Sets the chart area height.
ChartArea::setPaddingLeft public function Sets how far to draw the chart from the left border.
ChartArea::setPaddingTop public function Sets how far to draw the chart from the top border.
ChartArea::setWidth public function Sets the chart area width.