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

Source for file Wall.php

Documentation is available at Wall.php

  1. <?php
  2.  
  3. /**
  4.  * Wall class
  5.  *
  6.  * Description: Characteristics of Wall Panel that complements an Axis
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @link http://www.steema.com
  13.  */
  14.  
  15. class Wall extends TeeShape {
  16.  
  17.     protected $iSize=0;
  18.     protected $bApplyDark = true;
  19.  
  20.     // Interceptors
  21.     function __get$property {
  22.       $method ="get{$property}";
  23.       if method_exists$this$method ) ) {
  24.         return $this->$method();
  25.       }
  26.     }
  27.  
  28.     function __set $property,$value {
  29.       $method ="set{$property}";
  30.       if method_exists$this$method ) ) {
  31.         return $this->$method($value);
  32.       }
  33.     }
  34.  
  35.     protected function getShouldDark({
  36.         return $this->bApplyDark && ($this->bBrush != null&& $this->getBrush()->getVisible();
  37.     }
  38.  
  39.     /**
  40.      * Applies a darker shade to 3D Chart Walls when true.<br>
  41.      * Default value: true
  42.      *
  43.      * @return boolean 
  44.      */
  45.     public function getApplyDark({
  46.         return $this->bApplyDark;
  47.     }
  48.  
  49.     /**
  50.      * Applies a darker shade to 3D Chart Walls when true.<br>
  51.      * Default value: true
  52.      *
  53.      * @param value boolean
  54.      */
  55.     public function setApplyDark($value{
  56.         $this->bApplyDark = $this->setBooleanProperty($this->bApplyDark$value);
  57.     }
  58.  
  59.     function Wall($c=null{
  60.         parent::__construct($c);       
  61.     }
  62.  
  63.     /**
  64.      * The Chart Wall thickness.<br>
  65.      * Default value: 0
  66.      *
  67.      * @return int 
  68.      */
  69.     public function getSize({
  70.         return $this->iSize;
  71.     }
  72.  
  73.     /**
  74.      * Sets the Chart Wall thickness.<br>
  75.      * Default value: 0
  76.      *
  77.      * @param value int
  78.      */
  79.     public function setSize($value{
  80.         $this->iSize = $this->setIntegerProperty($this->iSize$value);
  81.     }
  82.  
  83.     protected function prepareGraphics($g{
  84.         if ($this->bTransparent{
  85.             $g->getBrush()->setVisible(false);
  86.         else {
  87.             $g->setBrush($this->getBrush());
  88.         }
  89.         $g->setPen($this->getPen());
  90.     }
  91. }
  92.  
  93. ?>

Documentation generated on Wed, 16 Jun 2010 12:09:15 +0200 by phpDocumentor 1.4.1