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

Source for file AxisTitle.php

Documentation is available at AxisTitle.php

  1. <?php
  2.  
  3.  /**
  4.  * AxisTitle class
  5.  *
  6.  * Description: Axis Title characteristics
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage axis
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. final class AxisTitle extends TextShape {
  17.  
  18.     private $iDefaultAngle=0;
  19.     private $angle=0;
  20.     private $customSize=0;
  21.  
  22.     // Interceptors
  23.     function __get$property {
  24.       $method ="get{$property}";
  25.       if method_exists$this$method ) ) {
  26.         return $this->$method();
  27.       }
  28.     }
  29.  
  30.     function __set $property,$value {
  31.       $method ="set{$property}";
  32.       if method_exists$this$method ) ) {
  33.         return $this->$method($value);
  34.       }
  35.     }
  36.  
  37.     /**
  38.     * The class constructor.
  39.     */
  40.     public function AxisTitle($c{
  41.         parent::TextShape($c);
  42.     }
  43.  
  44.     function setInitialAngle($a{
  45.         $this->angle $a;
  46.         $this->iDefaultAngle $this->angle;
  47.     }
  48.  
  49.     /**
  50.      * Rotation in degrees applied to each Axis Label. <br>
  51.      * The Axis will use this to draw its Title.
  52.      *
  53.      * @return int 
  54.      */
  55.     public function getAngle({
  56.         return $this->angle;
  57.     }
  58.  
  59.     /**
  60.      * Specifies the rotation in degrees applied to each Axis Label. <br>
  61.      *
  62.      * @param value int
  63.      */
  64.     public function setAngle($value{
  65.         $this->angle $this->setIntegerProperty($this->angle$value 360);
  66.     }
  67.  
  68.     /**
  69.      * The string of text used to register near each Chart Axis.<br>
  70.      * When empty, no Title is displayed. Use Angle and Font to control Axis
  71.      * Title formatting. <br>
  72.      * Default value: ""
  73.      *
  74.      * @return String 
  75.      */
  76.     public function getCaption({
  77.         return $this->getText();
  78.     }
  79.  
  80.     /**
  81.      * Defines the string of text used to draw near to each Chart Axis.<br>
  82.      * Default value: ""
  83.      *
  84.      * @param value String
  85.      */
  86.     public function setCaption($value{
  87.         if ($value != null{
  88.             $this->setText($value);
  89.         }
  90.     }
  91.  
  92.     //private boolean shouldSerializeAngle() {
  93.     //    return angle != iDefaultAngle;
  94.     //}
  95.  
  96.     /**
  97.      * Changes the spacing between the axis/labels and the outer panel edge.<br>
  98.      * Default valure: 0
  99.      *
  100.      * @return int 
  101.      */
  102.     public function getCustomSize({
  103.         return $this->customSize;
  104.     }
  105.  
  106.     /**
  107.      * Sets the spacing between the axis/labels and the outer panel edge.<br>
  108.      * Default valure: 0
  109.      *
  110.      * @param value int
  111.      */
  112.     public function setCustomSize($value{
  113.         $this->customSize $this->setIntegerProperty($this->customSize$value);
  114.     }
  115. }
  116. ?>

Documentation generated on Wed, 16 Jun 2010 12:03:18 +0200 by phpDocumentor 1.4.1