getRect

getRect() method

Get coordinates of rect that bounds paragraph. The rect includes all the lines of text in paragraph, including empty ones.

Returns

Rectangle2D.Float