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

Source for file LegendStyle.php

Documentation is available at LegendStyle.php

  1. <?php
  2.  
  3. /**
  4.  * LegendStyle class
  5.  *
  6.  * Description: Describes the possible values of Legend::$LegendStyle
  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 legend
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. {
  17.    /**
  18.    * Legend draws Series Titles if there's more than one Series in the chart.
  19.    */
  20.    public static $AUTO 0;
  21.    /**
  22.    * Legend draws the Series Titles even if there's only one Series in the
  23.    * chart.
  24.    */
  25.    public static $SERIES 1;
  26.    /**
  27.    * Legend draws the first Active Series' values.
  28.    */
  29.    public static $VALUES 2;
  30.    /**
  31.    * Legend draws the Last Value of each Active Series (similar to Series).
  32.    */
  33.    public static $LASTVALUES 3;
  34.    /*
  35.    * Legend draws a number of the Palette entries defined by Legend.MaxNumRows.
  36.    */
  37.    public static $PALETTE 4;
  38.  
  39.    public function LegendStyle()
  40.    {
  41.    }
  42.  
  43.    public function fromValue($value)
  44.    {
  45.       switch($value)
  46.       {
  47.          case 0:
  48.             return self::$AUTO;
  49.          case 1:
  50.             return self::$SERIES;
  51.          case 2:
  52.             return self::$VALUES;
  53.          case 3:
  54.             return self::$LASTVALUES;
  55.          case 4:
  56.             return self::$PALETTE;
  57.          default:
  58.             return self::$AUTO;
  59.       }
  60.    }
  61. }
  62.  
  63. ?>

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