[ 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 * @subpackage Line 24 * @author Jesper Veggerby <pear.nosey@veggerby.dk> 25 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen 26 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 27 * @version CVS: $Id: Solid.php,v 1.6 2005/08/24 20:35:51 nosey Exp $ 28 * @link http://pear.php.net/package/Image_Graph 29 */ 30 31 /** 32 * Include file Image/Graph/Common.php 33 */ 34 require_once 'Image/Graph/Common.php'; 35 36 /** 37 * Simple colored line style. 38 * 39 * Use a color for line style. 40 * 41 * @category Images 42 * @package Image_Graph 43 * @subpackage Line 44 * @author Jesper Veggerby <pear.nosey@veggerby.dk> 45 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen 46 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 47 * @version Release: 0.7.2 48 * @link http://pear.php.net/package/Image_Graph 49 */ 50 class Image_Graph_Line_Solid extends Image_Graph_Common 51 { 52 53 /** 54 * The thickness of the line (requires GD 2) 55 * @var int 56 * @access private 57 */ 58 var $_thickness = 1; 59 60 /** 61 * The color of the line 62 * @var mixed 63 * @access private 64 */ 65 var $_color; 66 67 /** 68 * Image_Graph_SolidLine [Constructor] 69 * 70 * @param mixed $color The color of the line 71 */ 72 function Image_Graph_Line_Solid($color) 73 { 74 parent::Image_Graph_Common(); 75 $this->_color = $color; 76 } 77 78 /** 79 * Set the thickness of the linestyle 80 * 81 * @param int $thickness The line width in pixels 82 */ 83 function setThickness($thickness) 84 { 85 $this->_thickness = $thickness; 86 } 87 88 /** 89 * Gets the line style of the element 90 * 91 * @return int A GD linestyle representing the line style 92 * @see Image_Graph_Line 93 * @access private 94 */ 95 function _getLineStyle() 96 { 97 return array( 98 'color' => $this->_color, 99 'thickness' => $this->_thickness 100 ); 101 } 102 103 } 104 105 ?>
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 |