/** * Output the text * @access private */ function _done() { if (!$this->_font) { return false; } parent::_done(); $this->_font->_write($this->_fillLeft(), $this->_fillTop(), $this->_text); }
/** * Output the text * @access private */ function _done() { if (!$this->_font) { return false; } if (!is_a($this->_parent, "Image_Graph_Layout")) { $this->_setCoords( $this->_parent->_fillLeft(), $this->_parent->_fillTop(), $this->_parent->_fillRight(), $this->_parent->_fillTop() + $this->_font->height($this->_text) ); } parent::_done(); $this->_font->_write( ($this->_left + $this->_right - $this->_font->width($this->_text)) / 2, ($this->_top + $this->_bottom - $this->_font->height($this->_text)) / 2, $this->_text ); }