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

Method getScaledFont

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

Source from the content-addressed store, hash-verified

201 }
202
203 Font getScaledFont() {
204 if (font==null)
205 font = ImageJ.SansSerif14;
206 double mag = getMagnification();
207 if (nonScalable || imp==null || mag==1.0)
208 return font;
209 else
210 return font.deriveFont((float)(font.getSize()*mag));
211 }
212
213 /** Renders the text on the image. Draws the text in
214 * the foreground color if ip.setColor(Color) has

Callers 2

drawTextMethod · 0.95
updateBoundsMethod · 0.95

Calls 2

getSizeMethod · 0.65
getMagnificationMethod · 0.45

Tested by

no test coverage detected