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

Source for file LegendAdapter.php

Documentation is available at LegendAdapter.php

  1. <?php
  2.  
  3. /**
  4.  * LegendAdapter class
  5.  *
  6.  * Description:
  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 legend
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. class LegendAdapter implements LegendResolver
  17. {
  18.  
  19.     // Interceptors
  20.     function __get$property {
  21.       $method ="get{$property}";
  22.       if method_exists$this$method ) ) {
  23.         return $this->$method();
  24.       }
  25.     }
  26.  
  27.     function __set $property,$value {
  28.       $method ="set{$property}";
  29.       if method_exists$this$method ) ) {
  30.         return $this->$method($value);
  31.       }
  32.     }
  33.  
  34.    /** Creates a new instance of LegendAdapter */
  35.    public function LegendAdapter()   {}
  36.  
  37.    public function getBounds($legend$rectangle)
  38.    {
  39.       return $rectangle;
  40.    }
  41.  
  42.    public function getItemCoordinates($legend$coordinates)
  43.    {
  44.       return $coordinates;
  45.    }
  46.  
  47.    public function getItemText($legend$legendStyle$index$text)
  48.    {
  49.       return $text;
  50.    }
  51. }
  52.  
  53. ?>

Documentation generated on Wed, 16 Jun 2010 12:06:42 +0200 by phpDocumentor 1.4.1