MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / stringWidth

Method stringWidth

ij/src/main/java/ij/gui/TextRoi.java:551–554  ·  view source on GitHub ↗
(String s, FontMetrics metrics, Graphics g)

Source from the content-addressed store, hash-verified

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) {

Callers 15

updateBoundsMethod · 0.95
addTextMethod · 0.80
drawAndLabelAxisMethod · 0.80
drawStringMethod · 0.80
drawTextMethod · 0.80
padTitleMethod · 0.80
drawPixelsMethod · 0.80
drawTextMethod · 0.80
measureMethod · 0.80
drawRoiLabelMethod · 0.80
paintMethod · 0.80

Calls 2

getStringBoundsMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected