(Font font)
| 530 | } |
| 531 | |
| 532 | private Graphics getFontGraphics(Font font) { |
| 533 | if (fontGraphics==null) { |
| 534 | BufferedImage bi =new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB); |
| 535 | fontGraphics = (Graphics2D)bi.getGraphics(); |
| 536 | } |
| 537 | fontGraphics.setFont(font); |
| 538 | return fontGraphics; |
| 539 | } |
| 540 | |
| 541 | void updateText() { |
| 542 | if (imp!=null) { |
no test coverage detected