/** * Create an pointing marker, ie a pin on a board * * @param int $deltaX The the X offset from the real 'data' point * @param int $deltaY The the Y offset from the real 'data' point * @param Marker &$markerEnd The ending marker that represents 'the head of * the pin' */ function Image_Graph_Marker_Pointing($deltaX, $deltaY, &$markerEnd) { parent::__construct(); $this->_deltaX = $deltaX; $this->_deltaY = $deltaY; $this->_markerStart = null; $this->_markerEnd =& $markerEnd; }
/** * Create a value marker, ie a box containing the value of the 'pointing * data' * * @param int $useValue Defines which value to use from the dataset, i.e. the * X or Y value */ function Image_Graph_Marker_Value($useValue = IMAGE_GRAPH_VALUE_X) { parent::__construct(); $this->_padding = array('left' => 2, 'top' => 2, 'right' => 2, 'bottom' => 2); $this->_useValue = $useValue; $this->_fillStyle = 'white'; $this->_borderStyle = 'black'; }
/** * Create an pointing marker, ie a pin on a board * * @param int $deltaX The the X offset from the real 'data' point * @param int $deltaY The the Y offset from the real 'data' point * @param Marker $markerEnd The ending marker that represents 'the head of * the pin' */ function __construct($deltaX, $deltaY, &$markerEnd) { parent::__construct(); $this->_deltaX = $deltaX; $this->_deltaY = $deltaY; $this->_markerStart = null; $this->_markerEnd =& $markerEnd; }
/** * Create a value marker, ie a box containing the value of the "pointing data" * @param int $useValue Defines which value to use from the dataset, ie the X or Y value */ function &Image_Graph_Marker_Value($useValue = IMAGE_GRAPH_VALUE_X) { parent::__construct(); $this->_padding = 2; $this->_useValue = $useValue; $this->setFont($GLOBALS['_Image_Graph_font']); $this->_fillStyle = IMAGE_GRAPH_WHITE; $this->_borderStyle = IMAGE_GRAPH_BLACK; }
/** * Create an icon marker * * @param string $filename The filename of the icon * @param int $width The 'new' width of the icon if it is to be resized * @param int $height The 'new' height of the icon if it is to be resized */ function Image_Graph_Marker_Icon($filename, $width = 0, $height = 0) { parent::__construct(); $this->_filename = $filename; }
/** * Create an icon marker * * @param string $filename The filename of the icon * @param int $width The 'new' width of the icon if it is to be resized * @param int $height The 'new' height of the icon if it is to be resized */ function __construct($filename, $width = 0, $height = 0) { parent::__construct(); $this->_filename = $filename; }