void (String[] lines, String prefix) { myLines = lines; myTextLength = 0; for (String line : lines) { myTextLength += line.length(); } myPrefix = prefix; myWrapsCalculated = false; myHeightCalculated = -1; myWrapsCalculatedForWidth = -1; }