[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Image/Graph/ -> Constants.php (source)

   1  <?php
   2  
   3  /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
   4  
   5  /**
   6   * Image_Graph - Main class for the graph creation.
   7   *
   8   * PHP versions 4 and 5
   9   *
  10   * LICENSE: This library is free software; you can redistribute it and/or modify
  11   * it under the terms of the GNU Lesser General Public License as published by
  12   * the Free Software Foundation; either version 2.1 of the License, or (at your
  13   * option) any later version. This library is distributed in the hope that it
  14   * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
  15   * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
  16   * General Public License for more details. You should have received a copy of
  17   * the GNU Lesser General Public License along with this library; if not, write
  18   * to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  19   * 02111-1307 USA
  20   *
  21   * @category   Images
  22   * @package    Image_Graph
  23   * @author     Jesper Veggerby <pear.nosey@veggerby.dk>
  24   * @copyright  Copyright (C) 2003, 2004 Jesper Veggerby Hansen
  25   * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
  26   * @version    CVS: $Id: Constants.php,v 1.7 2005/08/03 21:21:52 nosey Exp $
  27   * @link       http://pear.php.net/package/Image_Graph
  28   */
  29  
  30  /**
  31   * Include file Image/Graph/Font.php
  32   */
  33  require_once  'Image/Graph/Font.php';
  34  
  35  // Constant declarations
  36  
  37  /**
  38   * Defines an X (horizontal) axis
  39   */
  40  define('IMAGE_GRAPH_AXIS_X', 1);
  41  
  42  /**
  43   * Defines an Y (vertical) axis
  44   */
  45  define('IMAGE_GRAPH_AXIS_Y', 2);
  46  
  47  /**
  48   * Defines an Y (vertical) axis
  49   */
  50  define('IMAGE_GRAPH_AXIS_Y_SECONDARY', 3);
  51  
  52  /**
  53   * Defines an horizontal (X) axis
  54   */
  55  define('IMAGE_GRAPH_AXIS_HORIZONTAL', 1);
  56  
  57  /**
  58   * Defines an vertical (Y) axis
  59   */
  60  define('IMAGE_GRAPH_AXIS_VERTICAL', 2);
  61  
  62  /**
  63   * Define if label should be shown for axis minimum value
  64   */
  65  define('IMAGE_GRAPH_LABEL_MINIMUM', 1);
  66  
  67  /**
  68   * Define if label should be shown for axis 0 (zero) value
  69   */
  70  define('IMAGE_GRAPH_LABEL_ZERO', 2);
  71  
  72  /**
  73   * Define if label should be shown for axis maximum value
  74   */
  75  define('IMAGE_GRAPH_LABEL_MAXIMUM', 4);
  76  
  77  /**
  78   * Defines a horizontal gradient fill
  79   */
  80  define('IMAGE_GRAPH_GRAD_HORIZONTAL', 1);
  81  
  82  /**
  83   * Defines a vertical gradient fill
  84   */
  85  define('IMAGE_GRAPH_GRAD_VERTICAL', 2);
  86  
  87  /**
  88   * Defines a horizontally mirrored gradient fill
  89   */
  90  define('IMAGE_GRAPH_GRAD_HORIZONTAL_MIRRORED', 3);
  91  
  92  /**
  93   * Defines a vertically mirrored gradient fill
  94   */
  95  define('IMAGE_GRAPH_GRAD_VERTICAL_MIRRORED', 4);
  96  
  97  /**
  98   * Defines a diagonal gradient fill from top-left to bottom-right
  99   */
 100  define('IMAGE_GRAPH_GRAD_DIAGONALLY_TL_BR', 5);
 101  
 102  /**
 103   * Defines a diagonal gradient fill from bottom-left to top-right
 104   */
 105  define('IMAGE_GRAPH_GRAD_DIAGONALLY_BL_TR', 6);
 106  
 107  /**
 108   * Defines a radial gradient fill
 109   */
 110  define('IMAGE_GRAPH_GRAD_RADIAL', 7);
 111  
 112  /**
 113   * Defines the default builtin font
 114   */
 115  define('IMAGE_GRAPH_FONT', 1);
 116  
 117  /**
 118   * Defines a X value should be used
 119   */
 120  define('IMAGE_GRAPH_VALUE_X', 0);
 121  
 122  /**
 123   * Defines a Y value should be used
 124   */
 125  define('IMAGE_GRAPH_VALUE_Y', 1);
 126  
 127  /**
 128   * Defines a min X% value should be used
 129   */
 130  define('IMAGE_GRAPH_PCT_X_MIN', 2);
 131  
 132  /**
 133   * Defines a max X% value should be used
 134   */
 135  define('IMAGE_GRAPH_PCT_X_MAX', 3);
 136  
 137  /**
 138   * Defines a min Y% value should be used
 139   */
 140  define('IMAGE_GRAPH_PCT_Y_MIN', 4);
 141  
 142  /**
 143   * Defines a max Y% value should be used
 144   */
 145  define('IMAGE_GRAPH_PCT_Y_MAX', 5);
 146  
 147  /**
 148   * Defines a total Y% value should be used
 149   */
 150  define('IMAGE_GRAPH_PCT_Y_TOTAL', 6);
 151  
 152  /**
 153   * Defines a ID value should be used
 154   */
 155  define('IMAGE_GRAPH_POINT_ID', 7);
 156  
 157  /**
 158   * Align text left
 159   */
 160  define('IMAGE_GRAPH_ALIGN_LEFT', 0x1);
 161  
 162  /**
 163   * Align text right
 164   */
 165  define('IMAGE_GRAPH_ALIGN_RIGHT', 0x2);
 166  
 167  /**
 168   * Align text center x (horizontal)
 169   */
 170  define('IMAGE_GRAPH_ALIGN_CENTER_X', 0x4);
 171  
 172  /**
 173   * Align text top
 174   */
 175  define('IMAGE_GRAPH_ALIGN_TOP', 0x8);
 176  
 177  /**
 178   * Align text bottom
 179   */
 180  define('IMAGE_GRAPH_ALIGN_BOTTOM', 0x10);
 181  
 182  /**
 183   * Align text center y (vertical)
 184   */
 185  define('IMAGE_GRAPH_ALIGN_CENTER_Y', 0x20);
 186  
 187  /**
 188   * Align text center (both x and y)
 189   */
 190  define('IMAGE_GRAPH_ALIGN_CENTER', IMAGE_GRAPH_ALIGN_CENTER_X + IMAGE_GRAPH_ALIGN_CENTER_Y);
 191  
 192  /**
 193   * Align text top left
 194   */
 195  define('IMAGE_GRAPH_ALIGN_TOP_LEFT', IMAGE_GRAPH_ALIGN_TOP + IMAGE_GRAPH_ALIGN_LEFT);
 196  
 197  /**
 198   * Align text top right
 199   */
 200  define('IMAGE_GRAPH_ALIGN_TOP_RIGHT', IMAGE_GRAPH_ALIGN_TOP + IMAGE_GRAPH_ALIGN_RIGHT);
 201  
 202  /**
 203   * Align text bottom left
 204   */
 205  define('IMAGE_GRAPH_ALIGN_BOTTOM_LEFT', IMAGE_GRAPH_ALIGN_BOTTOM + IMAGE_GRAPH_ALIGN_LEFT);
 206  
 207  /**
 208   * Align text bottom right
 209   */
 210  define('IMAGE_GRAPH_ALIGN_BOTTOM_RIGHT', IMAGE_GRAPH_ALIGN_BOTTOM + IMAGE_GRAPH_ALIGN_RIGHT);
 211  
 212  /**
 213   * Align vertical
 214   */
 215  define('IMAGE_GRAPH_ALIGN_VERTICAL', IMAGE_GRAPH_ALIGN_TOP);
 216  
 217  /**
 218   * Align horizontal
 219   */
 220  define('IMAGE_GRAPH_ALIGN_HORIZONTAL', IMAGE_GRAPH_ALIGN_LEFT);
 221  
 222  // Error codes
 223  define('IMAGE_GRAPH_ERROR_GENERIC', 0);
 224  
 225  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7