Class UiText
java.lang.Object
wiiuu.ui.UiText
Width-aware text layout extracted from the WII-UU and Choccy Milk menus.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringellipsize(String text, FontMetrics metrics, float width) Fit a line with an ellipsis.wrap(String text, FontMetrics metrics, float width, int maxLines) Wrap words into at most maxLines lines; ellipsize long words and the remaining final line.
-
Method Details
-
ellipsize
Fit a line with an ellipsis. Return empty when even the ellipsis cannot fit. -
wrap
Wrap words into at most maxLines lines; ellipsize long words and the remaining final line.
-