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

Method getFontGraphics

ij/src/main/java/ij/gui/TextRoi.java:532–539  ·  view source on GitHub ↗
(Font font)

Source from the content-addressed store, hash-verified

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

Callers 2

TextRoiMethod · 0.95
updateBoundsMethod · 0.95

Calls 2

getGraphicsMethod · 0.80
setFontMethod · 0.65

Tested by

no test coverage detected