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

Source for file ToolAxis.php

Documentation is available at ToolAxis.php

  1. <?php
  2.  
  3. /**
  4.  * ToolAxis class
  5.  *
  6.  * Description: Base abstract class for Tool components with an Axis 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 ToolAxis extends Tool
  17. {
  18.  
  19.    protected $iAxis;
  20.  
  21.     // Interceptors
  22.     function __get$property {
  23.       $method ="get{$property}";
  24.       if method_exists$this$method ) ) {
  25.         return $this->$method();
  26.       }
  27.     }
  28.  
  29.     function __set $property,$value {
  30.       $method ="set{$property}";
  31.       if method_exists$this$method ) ) {
  32.         return $this->$method($value);
  33.       }
  34.     }
  35.  
  36.    public function ToolAxis($c null)
  37.    {
  38.       parent::Tool($c);
  39.    }
  40.  
  41.    /**
  42.    * Element Pen characteristics.
  43.    *
  44.    * @return ChartPen 
  45.    */
  46.    public function getPen()
  47.    {
  48.       if($this->pPen == null)
  49.       {
  50.          $tmpColor new Color(000);
  51.          $this->pPen = new ChartPen($this->getChart()$tmpColor);
  52.       }
  53.       return $this->pPen;
  54.    }
  55.  
  56.    /**
  57.    * The axis to which a Tool will belong.<br>
  58.    * Default value: null
  59.    *
  60.    * @return Axis 
  61.    */
  62.    public function getAxis()
  63.    {
  64.       return $this->iAxis;
  65.    }
  66.  
  67.    /**
  68.    * Sets the axis to which a Tool will belong.<br>
  69.    * Default value: null
  70.    *
  71.    * @param value Axis
  72.    */
  73.    public function setAxis($value)
  74.    {
  75.       if($this->iAxis != $value)
  76.       {
  77.          $this->iAxis = $value;
  78.          $this->invalidate();
  79.       }
  80.    }
  81. }
  82. ?>

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