(String s, FontMetrics fontMetrics, Graphics g)
| 33 | } |
| 34 | |
| 35 | public static int getStringWidth(String s, FontMetrics fontMetrics, Graphics g) { |
| 36 | java.awt.geom.Rectangle2D r = fontMetrics.getStringBounds(s, g); |
| 37 | return (int)r.getWidth(); |
| 38 | } |
| 39 | |
| 40 | public static void setBilinearInterpolation(Graphics g, boolean bilinearInterpolation) { |
| 41 | Graphics2D g2d = (Graphics2D)g; |
no test coverage detected