(String text)
| 25 | } |
| 26 | |
| 27 | private void init(String text) { |
| 28 | StringTokenizer t = new StringTokenizer(text, "\n"); |
| 29 | num_lines = t.countTokens(); |
| 30 | lines = new String[num_lines]; |
| 31 | line_widths = new int[num_lines]; |
| 32 | for (int i=0; i<num_lines; i++) |
| 33 | lines[i] = t.nextToken(); |
| 34 | } |
| 35 | |
| 36 | // Figures out how wide each line of the label |
| 37 | // is, and how wide the widest line is. |
no test coverage detected