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

Source for file TextShapePosition.php

Documentation is available at TextShapePosition.php

  1. <?php
  2.  
  3. /**
  4.  * TextShapePosition class
  5.  *
  6.  * Description: Shape Custom Position
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2010 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @link http://www.steema.com
  13.  */
  14.  
  15. class TextShapePosition extends TextShape {
  16.  
  17.     protected $bCustomPosition=false;
  18.  
  19.     // Interceptors
  20.     function __get$property {
  21.       $method ="get{$property}";
  22.       if method_exists$this$method ) ) {
  23.         return $this->$method();
  24.       }
  25.     }
  26.  
  27.     function __set $property,$value {
  28.       $method ="set{$property}";
  29.       if method_exists$this$method ) ) {
  30.         return $this->$method($value);
  31.       }
  32.     }
  33.  
  34.     public function TextShapePosition($c{
  35.         parent::TextShape($c);
  36.     }
  37.  
  38.     /**
  39.      * Allows custom positioning of TextShape when true.<br>
  40.      * Default value: false
  41.      *
  42.      * @return boolean 
  43.      */
  44.     public function getCustomPosition({
  45.         return $this->bCustomPosition;
  46.     }
  47.  
  48.     /**
  49.      * Set to true to permit custom positioning of TextShape.<br>
  50.      * Default value: false
  51.      *
  52.      * @param value boolean
  53.      */
  54.     public function setCustomPosition($value{
  55.         $this->bCustomPosition = $this->setBooleanProperty($this->bCustomPosition$value);
  56.     }
  57.  
  58.     protected function shouldSerializeLeft({
  59.         return $this->bCustomPosition;
  60.     }
  61.  
  62.     protected function shouldSerializeTop({
  63.         return $this->bCustomPosition;
  64.     }
  65.  
  66.     protected function shouldSerializeRight({
  67.         return $this->bCustomPosition;
  68.     }
  69.  
  70.     protected function shouldSerializeBottom({
  71.         return $this->bCustomPosition;
  72.     }
  73. }
  74.  
  75. ?>

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