class ChartArea in Charts 8.3
Same name and namespace in other branches
- 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\GoogleView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChartArea:: |
private | property | Chart area height. | |
ChartArea:: |
private | property | How far to draw the chart from the left border. | |
ChartArea:: |
private | property | How far to draw the chart from the top border. | |
ChartArea:: |
private | property | Chart area width. | |
ChartArea:: |
public | function | Gets the chart area height. | |
ChartArea:: |
public | function | Gets how far to draw the chart from the left border. | |
ChartArea:: |
public | function | Gets how far to draw the chart from the top border. | |
ChartArea:: |
public | function | Gets the chart area width. | |
ChartArea:: |
public | function | Json Serialize. | |
ChartArea:: |
public | function | Sets the chart area height. | |
ChartArea:: |
public | function | Sets how far to draw the chart from the left border. | |
ChartArea:: |
public | function | Sets how far to draw the chart from the top border. | |
ChartArea:: |
public | function | Sets the chart area width. |