/** * Draw the marker on the canvas * * @param int $x The X (horizontal) position (in pixels) of the marker on * the canvas * @param int $y The Y (vertical) position (in pixels) of the marker on the * canvas * @param array $values The values representing the data the marker 'points' * to * @access private */ function _drawMarker($x, $y, $values = false) { parent::_drawMarker($x, $y, $values); if ($this->_markerStart) { $this->_markerStart->_setParent($this); $this->_markerStart->_drawMarker($x, $y, $values); } $this->_getLineStyle(); $this->_canvas->line(array('x0' => $x, 'y0' => $y, 'x1' => $x + $this->_deltaX, 'y1' => $y + $this->_deltaY)); $this->_markerEnd->_setParent($this); $this->_markerEnd->_drawMarker($x + $this->_deltaX, $y + $this->_deltaY, $values); }
/** * Set the secondary marker * @param Marker $secondaryMarker The secondary marker */ function setSecondaryMarker(& $secondaryMarker) { $this->_secondaryMarker = & $secondaryMarker; $this->_secondaryMarker->_setParent($this); }
/** * Sets the starting marker, ie the tip of the pin on a board * @param Marker $markerStart The starting marker that represents "the tip of the pin" */ function setMarkerStart(& $markerStart) { $this->_markerStart = & $markerStart; $this->_markerStart->_setParent($this); }