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

Source for file SeriesMarksPosition.php

Documentation is available at SeriesMarksPosition.php

  1. <?php
  2.  
  3. /**
  4. *
  5. * <p>Title: SeriesMarksPosition class</p>
  6. *
  7. * <p>Description: Series Mark Position</p>
  8. *
  9. * <p>Copyright (c) 2005-2008 by Steema Software SL. All Rights
  10. * Reserved.</p>
  11. *
  12. * <p>Company: Steema Software SL</p>
  13. *
  14. */
  15.  
  16. {
  17.  
  18.    public $arrowFix;
  19.    public $arrowFrom = null;
  20.    public $arrowTo = null;
  21.    public $custom = false;
  22.    public $height = 0;
  23.    public $leftTop = null;
  24.    public $width = 0;
  25.  
  26.  
  27.     // Interceptors
  28.     function __get$property {
  29.       $method ="get{$property}";
  30.       if method_exists$this$method ) ) {
  31.         return $this->$method();
  32.       }
  33.     }
  34.  
  35.     function __set $property,$value {
  36.       $method ="set{$property}";
  37.       if method_exists$this$method ) ) {
  38.         return $this->$method($value);
  39.       }
  40.     }
  41.  
  42.    public function SeriesMarksPosition()
  43.    {
  44.       $this->arrowFrom = new TeePoint();
  45.       $this->arrowTo = new TeePoint();
  46.       $this->leftTop = new TeePoint();
  47.    }
  48.  
  49.    /**
  50.    * Returns the bounding rectangle of the indexed Mark.
  51.    *
  52.    * @return Rectangle 
  53.    */
  54.    public function getBounds()
  55.    {
  56.       return new Rectangle($this->leftTop->getX()$this->leftTop->getY(),$this->width$this->height);
  57.    }
  58.  
  59.    public function assign($source)
  60.    {
  61.       $this->arrowFrom->setX($source->arrowFrom->getX());
  62.       $this->arrowFrom->setY($source->arrowFrom->getY());
  63.       $this->arrowTo->setX($source->arrowTo->getX());
  64.       $this->arrowTo->setY($source->arrowTo->getY());
  65.       $this->leftTop->setX($source->leftTop->getX());
  66.       $this->leftTop->setY($source->leftTop->getY());
  67.       $this->height = $source->height;
  68.       $this->width = $source->width;
  69.    }
  70. }
  71.  
  72. ?>

Documentation generated on Wed, 16 Jun 2010 12:08:01 +0200 by phpDocumentor 1.4.1