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

Method updateText

ij/src/main/java/ij/gui/TextRoi.java:541–549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539 }
540
541 void updateText() {
542 if (imp!=null) {
543 updateClipRect();
544 if (angle!=0.0)
545 imp.draw();
546 else
547 imp.draw(clipX, clipY, clipWidth, clipHeight);
548 }
549 }
550
551 double stringWidth(String s, FontMetrics metrics, Graphics g) {
552 java.awt.geom.Rectangle2D r = metrics.getStringBounds(s, g);

Callers 2

addCharMethod · 0.95
handleMouseUpMethod · 0.95

Calls 2

updateClipRectMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected