(String s, FontMetrics metrics, Graphics g)
| 549 | } |
| 550 | |
| 551 | double stringWidth(String s, FontMetrics metrics, Graphics g) { |
| 552 | java.awt.geom.Rectangle2D r = metrics.getStringBounds(s, g); |
| 553 | return r.getWidth(); |
| 554 | } |
| 555 | |
| 556 | /** Used by the Recorder for recording the text tool. */ |
| 557 | public String getMacroCode(String cmd, ImagePlus imp) { |
no test coverage detected