Source for file XPTheme.php
Documentation is available at XPTheme.php
* <p>Title: XP 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()->getPen()->setWidth(3);
$this->chart->getPanel()->setBorderRound(0);
$this->chart->getLegend()->getShadow()->setVisible(true);
$this->chart->getLegend()->getShadow()->setSize(5);
$this->chart->getPanel()->getGradient()->setVisible(true);
// TODO $this->chart->getPanel().getGradient()->setDirection(GradientDirectionBACKDIAGONAL);
$this->doChangeWall($this->chart->getWalls()->getLeft());
$this->doChangeWall($this->chart->getWalls()->getRight());
$this->doChangeWall($this->chart->getWalls()->getBack());
$this->doChangeWall($this->chart->getWalls()->getBottom());
$this->chart->getWalls()->getBack()->setTransparent(false);
private function doChangeWall($wall) {
$wall->getGradient()->setVisible(true);
$wall->getGradient()->setStartColor($tmp[2]);
$wall->getGradient()->setEndColor($tmp[1]);
|