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

Method setFont

ij/src/main/java/ij/gui/Plot.java:4872–4883  ·  view source on GitHub ↗

Sets the font. Also writes font properties for serialization.

(Font font)

Source from the content-addressed store, hash-verified

4870
4871 /** Sets the font. Also writes font properties for serialization. */
4872 @AstroImageJ(reason = "Implement IPlotObject for Vector Plot saving", modified = true)
4873 public void setFont(Font font) {
4874 if (font == this.font) return;
4875 this.font = font;
4876 if (font == null) {
4877 fontFamily = null;
4878 } else {
4879 fontFamily = font.getFamily();
4880 flags = (flags & ~FONT_STYLE_MASK) | font.getStyle();
4881 fontSize = font.getSize2D();
4882 }
4883 }
4884
4885 @Override
4886 @AstroImageJ(reason = "Implement IPlotObject for Vector Plot saving", modified = true)

Callers 2

setFontMethod · 0.95
PlotObjectMethod · 0.95

Calls 1

getStyleMethod · 0.45

Tested by

no test coverage detected