* @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version CVS: $Id$ * @link http://pear.php.net/package/Image_Graph */ /** * Include file Image/Graph/Line/Solid.php */ require_once 'Image/Graph/Line/Solid.php'; /** * Formatted user defined line style. * * Use this to create a user defined line style. Specify an array of colors that are to * be used for displaying the line. * * @category Images * @package Image_Graph * @subpackage Line * @author Jesper Veggerby * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version Release: @package_version@ * @link http://pear.php.net/package/Image_Graph */ class Image_Graph_Line_Formatted extends Image_Graph_Line_Solid { /** * The style of the line * * @var array * @access private */ var $_style; /** * Image_Graph_FormattedLine [Constructor] * * @param array $style The style of the line */ function Image_Graph_Line_Formatted($style) { parent::Image_Graph_Line_Solid(reset($style)); $this->_style = $style; } /** * Gets the line style of the element * * @return int A GD linestyle representing the line style * @see Image_Graph_Line * @access private */ function _getLineStyle() { return array( 'color' => $this->_style, 'thickness' => $this->_thickness ); } } ?>