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

Source for file AxisLabelStyle.php

Documentation is available at AxisLabelStyle.php

  1. <?php
  2.  
  3.  /**
  4.  * AxisLabelStyle class
  5.  *
  6.  * Description: Defines the possible values of Axis->getLabels()->getStyle()
  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. {
  17.  
  18.    /**
  19.    * Chooses the Style automatically
  20.    */
  21.    public static $AUTO 0;
  22.  
  23.    /**
  24.    * No label. This will trigger the event with empty strings
  25.    */
  26.    public static $NONE 1;
  27.  
  28.    /**
  29.    * Axis labeling is based on axis Minimum and Maximum properties.
  30.    */
  31.    public static $VALUE 2;
  32.  
  33.    /**
  34.    * Each Series point will have a Label using SeriesMarks style.
  35.    */
  36.    public static $MARK 3;
  37.  
  38.    /**
  39.    * Each Series point will have a Label using Series.XLabels strings
  40.    */
  41.    public static $TEXT 4;
  42.  
  43.    public function AxisLabelStyle()
  44.    {
  45.    }
  46.  
  47.    public function fromValue($value)
  48.    {
  49.       switch ($value)
  50.       {
  51.          case 0:
  52.             return self::$AUTO;
  53.          case 1:
  54.             return self::$NONE;
  55.          case 2:
  56.             return self::$VALUE;
  57.          case 3:
  58.             return self::$MARK;
  59.          default :
  60.             return self::$TEXT;
  61.       }
  62.    }
  63. }
  64.  
  65. ?>

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