How do you split a string?

I would use it if I knew how… The JavaDocs don’t show enough information…

From the docs located here

[quote] Segments of text are obtained by calling the method nextLayout, which returns a TextLayout representing the text that fits within the wrapping width. The nextLayout method moves the current position to the end of the layout returned from nextLayout.

LineBreakMeasurer implements the most commonly used line-breaking policy: Every word that fits within the wrapping width is placed on the line. If the first word does not fit, then all of the characters that fit within the wrapping width are placed on the line. At least one character is placed on each line.
[/quote]
Which is followed shortly by two examples of how to use it.

The TextLayout object contains the text that will fit on one line, and it knows how to draw itself, but you can call toString() on it to find out the actual text.