Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/view/plot/Plot.php
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | |||||
protected $textColor; | protected $textColor; | ||||
/** | /** | ||||
* Constructor of Plot. | * Constructor of Plot. | ||||
* | * | ||||
* @param integer width of the image | * @param integer width of the image | ||||
* @param integer height of the image | * @param integer height of the image | ||||
*/ | */ | ||||
public function LibchartPlot($width, $height) { | public function __construct($width, $height) { | ||||
$this->width = $width; | $this->width = $width; | ||||
$this->height = $height; | $this->height = $height; | ||||
$this->text = new LibchartText(); | $this->text = new LibchartText(); | ||||
$this->palette = new LibchartPalette(); | $this->palette = new LibchartPalette(); | ||||
// Default layout | // Default layout | ||||
$this->outputArea = new LibchartRectangle(0, 0, $width - 1, $height - 1); | $this->outputArea = new LibchartRectangle(0, 0, $width - 1, $height - 1); | ||||
▲ Show 20 Lines • Show All 277 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Return the text color. | * Return the text color. | ||||
* | * | ||||
* @return text color | * @return text color | ||||
*/ | */ | ||||
public function getTextColor() { | public function getTextColor() { | ||||
return $this->textColor; | return $this->textColor; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |