/** * Bottom boundary of the background fill area * @return int Bottommost position on the canvas * @access private */ function _fillBottom() { if ($this->_alignment & IMAGE_GRAPH_ALIGN_BOTTOM) { return $this->_top; } if ($this->_alignment & IMAGE_GRAPH_ALIGN_CENTER_Y) { return $this->_top + $this->_font->_centerHeight($this->_text); } else { return $this->_top + $this->_font->height($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 ); }