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

Source for file StringAlignment.php

Documentation is available at StringAlignment.php

  1. <?php
  2.  
  3. /**
  4.  * StringAlignment class
  5.  *
  6.  * Description: String alignment options
  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 drawing
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16. final class StringAlignment {
  17.  
  18.     public static $NEAR 1000//30;
  19.     public static $CENTER 2000//40;
  20.     public static $FAR 3000//50;
  21.  
  22.     public static $HORIZONTAL_LEFT_ALIGN 1;
  23.     public static $HORIZONTAL_CENTER_ALIGN 2;
  24.     public static $HORIZONTAL_RIGHT_ALIGN 4;
  25.     public static $VERTICAL_TOP_ALIGN 8;
  26.     public static $VERTICAL_CENTER_ALIGN 16;
  27.     public static $VERTICAL_BOTTOM_ALIGN 32;
  28.  
  29.  
  30.     function StringAlignment({
  31.     }
  32.  
  33.     public function fromValue($v{
  34.         switch ($v{
  35.         case 0:
  36.             return self::$NEAR;
  37.         case 1:
  38.             return self::$CENTER;
  39.         default:
  40.             return self::$FAR;
  41.         }
  42.     }
  43. }
  44. ?>

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