Source for file BusinessTheme.php
Documentation is available at BusinessTheme.php
* <p>Title: Business Theme class</p>
* <p>Description: TeeChart for Java</p>
* <p>Copyright (c) 2004-2008 by Steema Software SL. All Rights Reserved.</p>
* <p>Company: Steema Software SL</p>
* Description of Classic theme
public function apply() {
//$this->chart->getPanel()->setBorderRound(10);
$this->getChart()->getPanel()->getBorderPen()->setVisible(true);
$this->getChart()->getPanel()->getBorderPen()->setWidth(6);
$this->chart->getPanel()->getPen()->setVisible(true);
$this->chart->getPanel()->getPen()->setWidth(6);
$this->chart->getPanel()->getGradient()->setVisible(true);
$this->chart->getLegend()->getShadow()->setSize(3);
//$this->chart->getLegend()->getGradient()->setVisible(true);
for ($t = 0; $t < $this->chart->getSeriesCount(); ++ $t) {
$this->doChangeSeries($this->chart->getSeries($t));
$this->chart->getTools()->getTool(0)->setAxis($this->chart->getAxes()->getLeft());
$this->chart->getTools()->getTool(0)->getBand1()->setColor(new Color(200,200,200));
$this->chart->getTools()->getTool(0)->getBand2()->setColor(new Color(225,225,225));
private function doChangeSeries($series) {
//$series->getMarks()->getGradient()->setVisible(true);
// $series->getMarks()->getGradient()->setStartColor($tmpColor->getRed(),
// $tmpColor->getGreen(), $tmpColor->getBlue());
|