1 | while (iterator.hasNext()) {↵ | | 1 | while (iterator.hasNext()) {↵
|
2 | Tick tick = (Tick) iterator.next();↵ | | 2 | Tick tick = (Tick) iterator.next();↵
|
3 | Rectangle2D labelBounds = TextUtilities.getTextBounds(↵ | | 3 | Rectangle2D labelBounds = TextUtilities.getTextBounds(↵
|
4 | tick.getText(), g2, fm);↵ | | 4 | tick.getText(), g2, fm);↵
|
5 | if (labelBounds.getWidth() + insets.getTop()↵ | | 5 | if (labelBounds.getWidth() + insets.getLeft()↵
|
6 | + insets.getBottom() > maxHeight) {↵ | | 6 | + insets.getRight() > maxWidth) {↵
|
7 | maxHeight = labelBounds.getWidth()↵ | | 7 | maxWidth = labelBounds.getWidth()↵
|
8 | + insets.getTop() + insets.getBottom();↵ | | 8 | + insets.getLeft() + insets.getRight();↵
|
9 | | | 9 |
|