Returns the bounds of the specified String
in the
specified Graphics
context. The bounds is used
to layout the String
.
Note: The returned bounds is in baseline-relative coordinates
(see class notes
).
str | the specified String | |
beginIndex | the offset of the beginning of str | |
limit | the end offset of str | |
context | the specified Graphics context |
Rectangle2D
that is the bounding box of the
specified String
in the specified
Graphics
context.
java.awt.Font.getStringBounds(String, int, int, FontRenderContext)
Diagram: Font