public class TextHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
getLines(java.lang.String string)
Gets the lines in a text.
|
static java.lang.String[] |
getWords(java.lang.String string)
Gets the words in a text.
|
static java.lang.String[] |
wrap(java.lang.String string,
ej.microui.display.Font font,
int width)
Wraps a text in lines.
|
public static java.lang.String[] wrap(java.lang.String string,
ej.microui.display.Font font,
int width)
A new line is started:
string - the text.font - the font used to render the text.width - the size of a line.public static java.lang.String[] getLines(java.lang.String string)
A new line is started after a '\n'.
string - the text to split.public static java.lang.String[] getWords(java.lang.String string)
A new word is started after a space ' '.
string - the text.