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

Source for file BaseLine.php

Documentation is available at BaseLine.php

  1. <?php
  2. /**
  3.  *
  4.  * <p>Title: BaseLine class</p>
  5.  *
  6.  * <p>Description: Abstract Series class inherited by a number of TeeChart
  7.  * series styles.</p>
  8.  *
  9.  * <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights
  10.  * Reserved.</p>
  11.  *
  12.  * <p>Company: Steema Software SL</p>
  13.  *
  14.  */
  15.  
  16. abstract class BaseLine extends Series {
  17.  
  18.     protected $linePen;
  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 BaseLine($c=null{
  36.         parent::Series($c);
  37.     }
  38.  
  39.     public function assign($source{
  40.         if ($source instanceof BaseLine{
  41.             $tmp $source;
  42.             if ($tmp->linePen != null{
  43.                 $this->getLinePen()->assign($tmp->linePen);
  44.             }
  45.         }
  46.         parent::assign($source);
  47.     }
  48.  
  49.     public function setChart($c{
  50.         parent::setChart($c);
  51.         $this->getLinePen()->setChart($chart);
  52.     }
  53.  
  54.     /**
  55.      * Determines pen to draw the line connecting all points.<br>
  56.      *
  57.      * @return ChartPen 
  58.      */
  59.     public function getLinePen({
  60.         if ($this->linePen == null{
  61.             $this->linePen = new ChartPen($this->chartnew Color (0,0,0,0,true));
  62.         }
  63.         return $this->linePen;
  64.     }
  65. }
  66. ?>

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