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

Source for file VerticalAxis.php

Documentation is available at VerticalAxis.php

  1. <?php
  2.  
  3. /**
  4.  * VerticalAxis class
  5.  *
  6.  * Description: Describes the possible values of Series.VertAxis method
  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 styles
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. {
  17.    /**
  18.    * Associates the series with the left axis.
  19.    */
  20.    public static $LEFT 0;
  21.    /**
  22.    * Associates the series with the right axis.
  23.    */
  24.    public static $RIGHT 1;
  25.    /**
  26.    * Associates the series with both the left and right axis.
  27.    */
  28.    public static $BOTH 2;
  29.    /**
  30.    * Associates the series with a custom axis.
  31.    */
  32.    public static $CUSTOM 3;
  33.  
  34.    public function VerticalAxis()     {}
  35.  
  36.    public function fromInt($value)
  37.    {
  38.       switch($value)
  39.       {
  40.          case 0:
  41.             return self::$LEFT;
  42.          case 1:
  43.             return self::$RIGHT;
  44.          case 2:
  45.             return self::$BOTH;
  46.          default:
  47.             return self::$CUSTOM;
  48.       }
  49.    }
  50. }
  51. ?>

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