[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 4 5 /** 6 * Image_Graph - PEAR PHP OO Graph Rendering Utility. 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: Element.php,v 1.5 2005/02/21 20:50:01 nosey Exp $ 27 * @link http://pear.php.net/package/Image_Graph 28 */ 29 30 /** 31 * Include file Image/Graph/Element.php 32 */ 33 require_once 'Image/Graph/Element.php'; 34 35 /** 36 * Representation of a element on a plotarea. 37 * 38 * @category Images 39 * @package Image_Graph 40 * @author Jesper Veggerby <pear.nosey@veggerby.dk> 41 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen 42 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 43 * @version Release: 0.7.2 44 * @link http://pear.php.net/package/Image_Graph 45 * @abstract 46 */ 47 class Image_Graph_Plotarea_Element extends Image_Graph_Element 48 { 49 50 /** 51 * Get the X pixel position represented by a value 52 * 53 * @param double $point the value to get the pixel-point for 54 * @return double The pixel position along the axis 55 * @access private 56 */ 57 function _pointX($point) 58 { 59 return $this->_parent->_pointX($point); 60 } 61 62 /** 63 * Get the Y pixel position represented by a value 64 * 65 * @param double $point the value to get the pixel-point for 66 * @return double The pixel position along the axis 67 * @access private 68 */ 69 function _pointY($point) 70 { 71 return $this->_parent->_pointY($point); 72 } 73 74 /** 75 * Get the X and Y pixel position represented by a value 76 * 77 * @param array $point the values to get the pixel-point for 78 * @return array The (x, y) pixel position along the axis 79 * @access private 80 */ 81 function _pointXY($point) 82 { 83 return array ('X' => $this->_pointX($point), 'Y' => $this->_pointY($point)); 84 } 85 86 } 87 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |