Static Public Member Functions | |
| static Dimension | getStringSize (String textToMeasure, Font displayFont) |
| Measures the size of the input string, taking into account the current font and newlines. | |
| static String | repeat (String string, int numTimes) |
| static List< String > | splitString (String string, int maxCharsPerLine) |
| Splits a string into multiple lines, each with at most maxChars characters. | |
This software is distributed under the BSD License.
Definition at line 19 of file StringUtils.java.
| static Dimension getStringSize | ( | String | textToMeasure, | |
| Font | displayFont | |||
| ) | [static] |
Measures the size of the input string, taking into account the current font and newlines.
Definition at line 26 of file StringUtils.java.
| static String repeat | ( | String | string, | |
| int | numTimes | |||
| ) | [static] |
| string | ||
| numTimes |
Definition at line 51 of file StringUtils.java.
| static List<String> splitString | ( | String | string, | |
| int | maxCharsPerLine | |||
| ) | [static] |
Splits a string into multiple lines, each with at most maxChars characters.
We will try our best to split after spaces.
| string | ||
| maxCharsPerLine |
Definition at line 67 of file StringUtils.java.
1.4.7