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

Source for file TicksPen.php

Documentation is available at TicksPen.php

  1. <?php
  2.  
  3.  /**
  4.  * TicksPen class
  5.  *
  6.  * Description: Determines the kind of Pen used to draw Axis marks along
  7.  * the Axis line
  8.  *
  9.  * @author
  10.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  11.  * @version 1.0
  12.  * @package TeeChartPHP
  13.  * @subpackage axis
  14.  * @link http://www.steema.com
  15.  */
  16.  
  17.  
  18. class TicksPen extends ChartPen
  19. {
  20.  
  21.    public $length;// TODO  protected
  22.    public $defaultLength;// TODO  protected
  23.  
  24.  
  25.     // Interceptors
  26.     function __get$property {
  27.       $method ="get{$property}";
  28.       if method_exists$this$method ) ) {
  29.         return $this->$method();
  30.       }
  31.     }
  32.  
  33.     function __set $property,$value {
  34.       $method ="set{$property}";
  35.       if method_exists$this$method ) ) {
  36.         return $this->$method($value);
  37.       }
  38.     }
  39.  
  40.    /**
  41.    * The class constructor.
  42.    */
  43.    public function TicksPen($c)
  44.    {
  45.       parent::ChartPen($c);
  46.       $tmpColor new Color(120120120);// DARK_GRAY
  47.       $this->setDefaultColor($tmpColor);
  48.    }
  49.  
  50.    private function shouldSerializeLength()
  51.    {
  52.       return $this->length != $this->defaultLength;
  53.    }
  54.  
  55.    /**
  56.    * Length of Axis Ticks in pixels.
  57.    *
  58.    * @return int 
  59.    */
  60.    public function getLength()
  61.    {
  62.       return $this->length;
  63.    }
  64.  
  65.    /**
  66.    * Sets the length of Axis Ticks in pixels.
  67.    *
  68.    * @param value int
  69.    */
  70.    public function setLength($value)
  71.    {
  72.       $this->length = $this->setIntegerProperty($this->length$value);
  73.    }
  74. }
  75.  
  76. ?>

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