TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file BusinessTheme.php

Documentation is available at BusinessTheme.php

  1. <?php
  2.  
  3. /**
  4.  * <p>Title: Business Theme class</p>
  5.  *
  6.  * <p>Description: TeeChart for Java</p>
  7.  *
  8.  * <p>Copyright (c) 2004-2008 by Steema Software SL. All Rights Reserved.</p>
  9.  *
  10.  * <p>Company: Steema Software SL</p>
  11.  *
  12.  */
  13.  
  14. class BusinessTheme extends DefaultTheme {
  15.  
  16.     /**
  17.      * Description of Classic theme
  18.      *
  19.      * @param IBaseChart
  20.      */
  21.     public function BusinessTheme($c{
  22.         parent::DefaultTheme($c);    
  23.     }
  24.  
  25.     public function toString({
  26.         return Language::getString("BusinessTheme");
  27.     }
  28.  
  29.     public function apply({
  30.         parent::apply();
  31.         
  32.         $this->chart->getPanel()->getBevel()->setOuter(BevelStyle::$NONE);        
  33.         //$this->chart->getPanel()->setBorderRound(10);
  34.         
  35.         $this->getChart()->getPanel()->getBorderPen()->setVisible(true);
  36.         $this->getChart()->getPanel()->getBorderPen()->setWidth(6);
  37.         
  38.         $this->chart->getPanel()->getPen()->setVisible(true);
  39.         $this->chart->getPanel()->getPen()->setWidth(6);
  40.         $this->chart->getPanel()->getPen()->setColor(Color::NAVY());
  41.         $this->chart->getPanel()->getGradient()->setVisible(true);
  42.         $this->chart->getPanel()->getGradient()->setEndColor(Color::GRAY());
  43.         $this->chart->getPanel()->getGradient()->setStartColor(Color::WHITE());
  44.         
  45.         $this->chart->getLegend()->getShadow()->setSize(3);
  46.         //$this->chart->getLegend()->getGradient()->setVisible(true);
  47.         
  48.         $this->chart->getWalls()->getLeft()->setColor(Color::fromRgb(255255128));
  49.         $this->chart->getWalls()->getRight()->setColor(Color::SILVER());
  50.         $this->chart->getWalls()->getBack()->setColor(Color::SILVER());
  51.         $this->chart->getWalls()->getBottom()->setColor(Color::WHITE());
  52.         
  53.         for ($t 0$t $this->chart->getSeriesCount()++$t{
  54.             $this->doChangeSeries($this->chart->getSeries($t));
  55.         }
  56.  
  57.         $this->chart->getTools()->add(new GridBand());
  58.         $this->chart->getTools()->getTool(0)->setAxis($this->chart->getAxes()->getLeft());
  59.         $this->chart->getTools()->getTool(0)->getBand1()->setColor(new Color(200,200,200));
  60.         $this->chart->getTools()->getTool(0)->getBand2()->setColor(new Color(225,225,225));
  61.                 
  62.         ColorPalettes::_applyPalette($this->chartTheme::getVictorianPalette());  // Victorian
  63.     }
  64.  
  65.     private function doChangeSeries($series{
  66.         //$series->getMarks()->getGradient()->setVisible(true);
  67.         $tmpColor Color::SILVER();
  68.         //  $series->getMarks()->getGradient()->setStartColor($tmpColor->getRed(),
  69.         //     $tmpColor->getGreen(), $tmpColor->getBlue());
  70.     }
  71. }
  72. ?>

Documentation generated on Wed, 16 Jun 2010 12:03:37 +0200 by phpDocumentor 1.4.1