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

Source for file AxisLabelItem.php

Documentation is available at AxisLabelItem.php

  1. <?php
  2.  
  3.  /**
  4.  * AxisLabelItem class
  5.  *
  6.  * Description: Custom label
  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 axis
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. class AxisLabelItem extends TextShape
  17. {
  18.  
  19.    private $value;
  20.    protected $iAxisLabelsItems;
  21.  
  22.     // Interceptors
  23.     function __get$property {
  24.       $method ="get{$property}";
  25.       if method_exists$this$method ) ) {
  26.         return $this->$method();
  27.       }
  28.     }
  29.  
  30.     function __set $property,$value {
  31.       $method ="set{$property}";
  32.       if method_exists$this$method ) ) {
  33.         return $this->$method($value);
  34.       }
  35.     }
  36.  
  37.    public function AxisLabelItem($c)
  38.    {
  39.       parent::TextShape($c);
  40.    }
  41.  
  42.    /**
  43.    * Refreshes Label
  44.    */
  45.    public function repaint()
  46.    {
  47.       if (isset($this->iAxisLabelsItems->iAxis->chart))
  48.         $this->iAxisLabelsItems->iAxis->chart->invalidate();
  49.    }
  50.  
  51.    public function setValue($v)
  52.    {
  53.       if($v != $this->value)
  54.       {
  55.          $this->value $v;
  56.          $this->repaint();
  57.       }
  58.    }
  59.  
  60.    /**
  61.    * Determines the Axis Value of the Label.
  62.    *
  63.    * @return double 
  64.    */
  65.    public function getValue()
  66.    {
  67.       return $this->value;
  68.    }
  69. }
  70.  
  71. ?>

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