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

Source for file ShapeBorders.php

Documentation is available at ShapeBorders.php

  1. <?php
  2.  
  3. /**
  4.  * ShapeBorders class
  5.  *
  6.  * Description:
  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 ShapeBorders extends TeeBase {
  16.  
  17.     private $topLeft;
  18.     private $bottomLeft;
  19.     private $topRight;
  20.     private $bottomRight;
  21.     private $visible=false;
  22.  
  23.     // Interceptors
  24.     function __get$property {
  25.       $method ="get{$property}";
  26.       if method_exists$this$method ) ) {
  27.         return $this->$method();
  28.       }
  29.     }
  30.  
  31.     function __set $property,$value {
  32.       $method ="set{$property}";
  33.       if method_exists$this$method ) ) {
  34.         return $this->$method($value);
  35.       }
  36.     }
  37.  
  38.     public function __construct($c{
  39.         parent::__construct($c);
  40.        
  41.         $this->topLeft new TopLeftBorder($c$this);
  42.         $this->bottomLeft new BottomLeftBorder($c$this);
  43.         $this->topRight new TopRightBorder($c$this);
  44.         $this->bottomRight new BottomRightBorder($c$this);
  45.     }
  46.  
  47.  
  48.     public function getTopLeft({
  49.         return $this->topLeft;
  50.     }
  51.  
  52.     public function getBottomLeft({
  53.         return $this->bottomLeft;
  54.     }
  55.  
  56.     public function getTopRight({
  57.         return $this->topRight;
  58.     }
  59.  
  60.     public function getBottomRight({
  61.         return $this->bottomRight;
  62.     }
  63.  
  64.     public function getVisible({
  65.         return $this->visible;
  66.     }
  67.  
  68.     public function setVisible($value{
  69.         $this->visible $this->setBooleanProperty($this->visible$value);
  70.     }
  71. }
  72.  
  73.  
  74. class TopLeftBorder extends ShapeBorder {
  75.  
  76.         function __contruct($c$b{
  77.             parent::__contruct();
  78.         }
  79.  
  80. }
  81.  
  82. class BottomLeftBorder extends ShapeBorder {
  83.  
  84.         function __contruct($c$b{
  85.             parent::__contruct();
  86.         }
  87.  
  88. }
  89.  
  90. class TopRightBorder extends ShapeBorder {
  91.  
  92.         function __contruct($c$b{
  93.             parent::__contruct();
  94.         }
  95.  
  96. }
  97.  
  98. class BottomRightBorder extends ShapeBorder {
  99.  
  100.         function __contruct($c$b{
  101.             parent::__contruct();
  102.         }
  103.         
  104. }
  105.  
  106.  
  107. class ShapeBorder  {
  108.  
  109.         protected $bBorderRound=0;
  110.  
  111.         function __contruct({}
  112.  
  113.         // Radius border
  114.         public function getBorderRound({
  115.             return $this->bBorderRound;
  116.         }
  117.  
  118.         public function setBorderRound($value{
  119.             $this->bBorderRound=$value;
  120.         }
  121. }
  122.  
  123. ?>

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