/** * Right boundary of the background fill area * @return int Rightmost position on the canvas * @access private */ function _fillRight() { if ($this->_alignment & IMAGE_GRAPH_ALIGN_RIGHT) { return $this->_left; } if ($this->_alignment & IMAGE_GRAPH_ALIGN_CENTER_X) { return $this->_left + $this->_font->_centerWidth($this->_text); } else { return $this->_left + $this->_font->width($this->_text); } }