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

Source for file PieMarks.php

Documentation is available at PieMarks.php

  1. <?php
  2.  
  3. /**
  4. * <p>Title: PieMarks class</p>
  5. *
  6. * <p>Description: Customized pie series marks with additional properties.</p>
  7. *
  8. * <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.</p>
  9. *
  10. * <p>Company: Steema Software SL</p>
  11. *
  12. */
  13.  
  14. class PieMarks extends TeeBase
  15. {
  16.    private $vertcenter false;
  17.    private $legsize 0;
  18.  
  19.    public $series = null;
  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.    /**
  37.    * The class constructor.
  38.    */
  39.    public function PieMarks($c$s)
  40.    {
  41.       parent::__construct($c);
  42.  
  43.       if($this->series == null)
  44.       {
  45.          $this->series = $s;
  46.       }
  47.    }
  48.  
  49.    public function getVertCenter()
  50.    {
  51.       return $this->vertcenter;
  52.    }
  53.  
  54.    public function setVertCenter($value)
  55.    {
  56.       if($this->vertcenter != $value)
  57.       {
  58.          $this->vertcenter $value;
  59.          if($this->series != null$this->series->refreshSeries();
  60.       }
  61.    }
  62.  
  63.    public function getLegSize()
  64.    {
  65.       return $this->legsize;
  66.    }
  67.  
  68.    public function setLegSize($value)
  69.    {
  70.       if($this->legsize != $value)
  71.       {
  72.          $this->legsize $value;
  73.          if($this->series != null$this->series->refreshSeries();
  74.       }
  75.    }
  76. }
  77.  
  78. ?>

Documentation generated on Wed, 16 Jun 2010 12:07:24 +0200 by phpDocumentor 1.4.1