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

Source for file LegendItemCoordinates.php

Documentation is available at LegendItemCoordinates.php

  1. <?php
  2.  
  3. /**
  4.  * LegendItemCoordinates class
  5.  *
  6.  * Description: Legend Position
  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. {
  17.  
  18.    public $xColor;
  19.    private $idx;
  20.    private $x$y;
  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.    /**
  38.    * The class constructor.
  39.    */
  40.    public function LegendItemCoordinates($index$x$y$xColor)
  41.    {
  42.       $this->idx $index;
  43.       $this->$x;
  44.       $this->$y;
  45.       $this->xColor = $xColor;
  46.    }
  47.  
  48.    /* todo public function LegendItemCoordinates($c) {
  49.    parent::();
  50.    $this->idx = $c->getIndex();
  51.    $this->x = $c->getX();
  52.    $this->y = $c->getY();
  53.    $this->xColor = $c->getXColor();
  54.    }       */
  55.  
  56.    /**
  57.    * The Index of the Legend item.
  58.    *
  59.    * @return int 
  60.    */
  61.    public function getIndex()
  62.    {
  63.       return $this->idx;
  64.    }
  65.    /**
  66.    * The specific X coordinate of the Legend item.
  67.    *
  68.    * @return int 
  69.    */
  70.    public function getX()
  71.    {
  72.       return $this->x;
  73.    }
  74.  
  75.    /**
  76.    * Sts the specific X coordinate of the Legend item.
  77.    *
  78.    * @param value int
  79.    */
  80.    public function setX($value)
  81.    {
  82.       $this->$value;
  83.    }
  84.    /**
  85.    * The specific Y coordinate of the Legend item.
  86.    *
  87.    * @return int 
  88.    */
  89.    public function getY()
  90.    {
  91.       return $this->y;
  92.    }
  93.  
  94.    /**
  95.    * Sets the specific Y coordinate of the Legend item.
  96.    *
  97.    * @param value int
  98.    */
  99.    public function setY($value)
  100.    {
  101.       $this->$value;
  102.    }
  103.    /**
  104.    * The specific XColor coordinate of the Legend item.
  105.    *
  106.    * @return int 
  107.    */
  108.    public function getXColor()
  109.    {
  110.       return $this->xColor;
  111.    }
  112.  
  113.    /**
  114.    * Sets the specific XColor coordinate of the Legend item.
  115.    *
  116.    * @param value int
  117.    */
  118.    public function setXColor($value)
  119.    {
  120.       $this->xColor = $value;
  121.    }
  122. }
  123.  
  124. ?>

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