(int width, int height)
| 511 | } |
| 512 | |
| 513 | @Override |
| 514 | public int getBaseline(int width, int height) { |
| 515 | Style s = getStyle(); |
| 516 | Font f = s.getFont(); |
| 517 | |
| 518 | int innerHeight = height - s.getVerticalPadding(); |
| 519 | return s.getPaddingTop() + (innerHeight - f.getHeight()) / 2 + f.getAscent(); |
| 520 | } |
| 521 | |
| 522 | /// {@inheritDoc} |
| 523 | @Override |