* @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/Element.php */ require_once 'Image/Graph/Element.php'; /** * Representation of a element on a plotarea. * * @category Images * @package Image_Graph * @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 * @abstract */ class Image_Graph_Plotarea_Element extends Image_Graph_Element { /** * Get the X pixel position represented by a value * * @param double $point the value to get the pixel-point for * @return double The pixel position along the axis * @access private */ function _pointX($point) { return $this->_parent->_pointX($point); } /** * Get the Y pixel position represented by a value * * @param double $point the value to get the pixel-point for * @return double The pixel position along the axis * @access private */ function _pointY($point) { return $this->_parent->_pointY($point); } /** * Get the X and Y pixel position represented by a value * * @param array $point the values to get the pixel-point for * @return array The (x, y) pixel position along the axis * @access private */ function _pointXY($point) { return array ('X' => $this->_pointX($point), 'Y' => $this->_pointY($point)); } } ?>