public class GuiUtils
extends java.lang.Object
Gui
related functions.Modifier and Type | Method and Description |
---|---|
static @NotNull java.awt.Dimension |
getTextDimension(@NotNull java.lang.String text,
@NotNull java.awt.FontMetrics fontMetrics)
Returns the extents of a string when rendered in a given
Font on
this component. |
@NotNull public static @NotNull java.awt.Dimension getTextDimension(@NotNull @NotNull java.lang.String text, @NotNull @NotNull java.awt.FontMetrics fontMetrics)
Font
on
this component.text
- the textfontMetrics
- the font metrics for the font