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 version 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 * @author Stefan Neufeind <pear.neufeind@speedpartner.de> 25 * @copyright 2003-2009 The PHP Group 26 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 27 * @version SVN: $Id: Constants.php 291167 2009-11-23 01:39:31Z neufeind $ 28 * @link http://pear.php.net/package/Image_Graph 29 */ 30 31/** 32 * Include file Image/Graph/Font.php 33 */ 34require_once 'Image/Graph/Font.php'; 35 36// Constant declarations 37 38/** 39 * Defines an X (horizontal) axis 40 */ 41define('IMAGE_GRAPH_AXIS_X', 1); 42 43/** 44 * Defines an Y (vertical) axis 45 */ 46define('IMAGE_GRAPH_AXIS_Y', 2); 47 48/** 49 * Defines an Y (vertical) axis 50 */ 51define('IMAGE_GRAPH_AXIS_Y_SECONDARY', 3); 52 53/** 54 * Defines an horizontal (X) axis 55 */ 56define('IMAGE_GRAPH_AXIS_HORIZONTAL', 1); 57 58/** 59 * Defines an vertical (Y) axis 60 */ 61define('IMAGE_GRAPH_AXIS_VERTICAL', 2); 62 63/** 64 * Define if label should be shown for axis minimum value 65 */ 66define('IMAGE_GRAPH_LABEL_MINIMUM', 1); 67 68/** 69 * Define if label should be shown for axis 0 (zero) value 70 */ 71define('IMAGE_GRAPH_LABEL_ZERO', 2); 72 73/** 74 * Define if label should be shown for axis maximum value 75 */ 76define('IMAGE_GRAPH_LABEL_MAXIMUM', 4); 77 78/** 79 * Defines a horizontal gradient fill 80 */ 81define('IMAGE_GRAPH_GRAD_HORIZONTAL', 1); 82 83/** 84 * Defines a vertical gradient fill 85 */ 86define('IMAGE_GRAPH_GRAD_VERTICAL', 2); 87 88/** 89 * Defines a horizontally mirrored gradient fill 90 */ 91define('IMAGE_GRAPH_GRAD_HORIZONTAL_MIRRORED', 3); 92 93/** 94 * Defines a vertically mirrored gradient fill 95 */ 96define('IMAGE_GRAPH_GRAD_VERTICAL_MIRRORED', 4); 97 98/** 99 * Defines a diagonal gradient fill from top-left to bottom-right 100 */ 101define('IMAGE_GRAPH_GRAD_DIAGONALLY_TL_BR', 5); 102 103/** 104 * Defines a diagonal gradient fill from bottom-left to top-right 105 */ 106define('IMAGE_GRAPH_GRAD_DIAGONALLY_BL_TR', 6); 107 108/** 109 * Defines a radial gradient fill 110 */ 111define('IMAGE_GRAPH_GRAD_RADIAL', 7); 112 113/** 114 * Defines the default builtin font 115 */ 116define('IMAGE_GRAPH_FONT', 1); 117 118/** 119 * Defines a X value should be used 120 */ 121define('IMAGE_GRAPH_VALUE_X', 0); 122 123/** 124 * Defines a Y value should be used 125 */ 126define('IMAGE_GRAPH_VALUE_Y', 1); 127 128/** 129 * Defines a min X% value should be used 130 */ 131define('IMAGE_GRAPH_PCT_X_MIN', 2); 132 133/** 134 * Defines a max X% value should be used 135 */ 136define('IMAGE_GRAPH_PCT_X_MAX', 3); 137 138/** 139 * Defines a min Y% value should be used 140 */ 141define('IMAGE_GRAPH_PCT_Y_MIN', 4); 142 143/** 144 * Defines a max Y% value should be used 145 */ 146define('IMAGE_GRAPH_PCT_Y_MAX', 5); 147 148/** 149 * Defines a total Y% value should be used 150 */ 151define('IMAGE_GRAPH_PCT_Y_TOTAL', 6); 152 153/** 154 * Defines a ID value should be used 155 */ 156define('IMAGE_GRAPH_POINT_ID', 7); 157 158/** 159 * Align text left 160 */ 161define('IMAGE_GRAPH_ALIGN_LEFT', 0x1); 162 163/** 164 * Align text right 165 */ 166define('IMAGE_GRAPH_ALIGN_RIGHT', 0x2); 167 168/** 169 * Align text center x (horizontal) 170 */ 171define('IMAGE_GRAPH_ALIGN_CENTER_X', 0x4); 172 173/** 174 * Align text top 175 */ 176define('IMAGE_GRAPH_ALIGN_TOP', 0x8); 177 178/** 179 * Align text bottom 180 */ 181define('IMAGE_GRAPH_ALIGN_BOTTOM', 0x10); 182 183/** 184 * Align text center y (vertical) 185 */ 186define('IMAGE_GRAPH_ALIGN_CENTER_Y', 0x20); 187 188/** 189 * Align text center (both x and y) 190 */ 191define('IMAGE_GRAPH_ALIGN_CENTER', IMAGE_GRAPH_ALIGN_CENTER_X + IMAGE_GRAPH_ALIGN_CENTER_Y); 192 193/** 194 * Align text top left 195 */ 196define('IMAGE_GRAPH_ALIGN_TOP_LEFT', IMAGE_GRAPH_ALIGN_TOP + IMAGE_GRAPH_ALIGN_LEFT); 197 198/** 199 * Align text top right 200 */ 201define('IMAGE_GRAPH_ALIGN_TOP_RIGHT', IMAGE_GRAPH_ALIGN_TOP + IMAGE_GRAPH_ALIGN_RIGHT); 202 203/** 204 * Align text bottom left 205 */ 206define('IMAGE_GRAPH_ALIGN_BOTTOM_LEFT', IMAGE_GRAPH_ALIGN_BOTTOM + IMAGE_GRAPH_ALIGN_LEFT); 207 208/** 209 * Align text bottom right 210 */ 211define('IMAGE_GRAPH_ALIGN_BOTTOM_RIGHT', IMAGE_GRAPH_ALIGN_BOTTOM + IMAGE_GRAPH_ALIGN_RIGHT); 212 213/** 214 * Align vertical 215 */ 216define('IMAGE_GRAPH_ALIGN_VERTICAL', IMAGE_GRAPH_ALIGN_TOP); 217 218/** 219 * Align horizontal 220 */ 221define('IMAGE_GRAPH_ALIGN_HORIZONTAL', IMAGE_GRAPH_ALIGN_LEFT); 222 223// Error codes 224define('IMAGE_GRAPH_ERROR_GENERIC', 0); 225 226?>