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

Source for file MarksCallout.php

Documentation is available at MarksCallout.php

  1. <?php
  2.  
  3. /**
  4. *
  5. * <p>Title: MarksCallout class</p>
  6. *
  7. * <p>Description: </p>
  8. *
  9. * <p>Copyright (c) 2005-2008 by Steema Software SL. </p>
  10. * <p>All Rights Reserved.</p>
  11. *
  12. * <p>Company: Steema Software SL</p>
  13. */
  14.  
  15. class MarksCallout extends Callout
  16. {
  17.  
  18.    protected $length = 8;
  19.    private $defaultLength=0;
  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.    public function MarksCallout($s)
  37.    {
  38.       parent::Callout($s);
  39.       
  40.       $this->readResolve();
  41.       $this->setDefaultVisible(false);
  42.    }
  43.  
  44.    protected function readResolve()
  45.    {
  46.       $this->defaultLength 8;
  47.       return parent::readResolve();
  48.    }
  49.  
  50.    /**
  51.    * Length between series data points and Marks.
  52.    *
  53.    * @return int 
  54.    */
  55.    public function getLength()
  56.    {
  57.       return $this->length;
  58.    }
  59.  
  60.    /**
  61.    * Specifies the Length between series data points and Marks.
  62.    *
  63.    * @param value int
  64.    */
  65.    public function setLength($value)
  66.    {
  67.       if($this->length != $value)
  68.       {
  69.          $this->length = $value;
  70.          $this->invalidate();
  71.       }
  72.    }
  73.  
  74.    function setDefaultLength($value)
  75.    {
  76.       $this->defaultLength $value;
  77.       $this->length = $value;
  78.    }
  79.  
  80. }
  81.  
  82. ?>

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