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

Source for file ToolSeries.php

Documentation is available at ToolSeries.php

  1. <?php
  2.  
  3. /**
  4.  * ToolSeries class
  5.  *
  6.  * Description: Base abstract class for Tool components with a Series method
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage tools
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class ToolSeries extends Tool {
  17.  
  18.     protected $iSeries;
  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 ToolSeries($c=null,$s=null{
  36.         if ($s != null)
  37.         {
  38.            parent::Tool($s->getChart());
  39.            $this->iSeries = $s;
  40.         }
  41.         else
  42.           parent::Tool($c);
  43.             
  44.     }
  45.  
  46.     /**
  47.     * Returns the associated Top or Bottom Chart Horizontal Axis.
  48.     *
  49.     * @return Axis 
  50.     */
  51.     public function getHorizAxis({
  52.         return ($this->iSeries == null$this->chart->getAxes()->getBottom($this->iSeries->getHorizAxis();
  53.     }
  54.  
  55.     /**
  56.     * Returns the associated Left or Right Chart Vertical Axis.
  57.     *
  58.     * @return Axis 
  59.     */
  60.     public function getVertAxis({
  61.         return ($this->iSeries == null$this->chart->getAxes()->getLeft($this->iSeries->getVertAxis();
  62.     }
  63.  
  64.     /**
  65.     * The Series with which Tools are associated.<br>
  66.     * Default value: null
  67.     *
  68.     * @return Series 
  69.     */
  70.     public function getSeries({
  71.         return $this->iSeries;
  72.     }
  73.  
  74.     /**
  75.     * Sets the Series with which Tools are associated.<br>
  76.     * Default value: null
  77.     *
  78.     * @param value Series
  79.     */
  80.     public function setSeries($value{
  81.         $this->iSeries = $value;
  82.         $this->invalidate();
  83.     }
  84. }
  85.  
  86. ?>

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