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

Source for file ArrowHeadStyle.php

Documentation is available at ArrowHeadStyle.php

  1. <?php
  2.  
  3. /**
  4.  * ArrowHeadStyle Class
  5.  *
  6.  * Description: Arrow head styles
  7.  *
  8.  * @author
  9.  * @copyright 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. class ArrowHeadStyle {
  17.  
  18.    /**
  19.    * Do not display an arrow head.
  20.    */
  21.    public static $NONE 0;
  22.  
  23.    /**
  24.    * Display an arrow head made with two lines.
  25.    */
  26.    public static $LINE 1;
  27.  
  28.    /**
  29.    * Display a filled arrow head.
  30.    */
  31.    public static $SOLID 2;
  32.  
  33.    public function ArrowHeadStyle()
  34.    {}
  35.  
  36.    public function fromValue($value)
  37.    {
  38.       switch($value)
  39.       {
  40.          case 0:
  41.             return self::$NONE;
  42.          case 1:
  43.             return self::$LINE;
  44.          default:
  45.             return self::$SOLID;
  46.       }
  47.    }
  48. }
  49. ?>

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