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

Method changeFontSize

ij/src/main/java/ij/plugin/frame/Editor.java:1727–1740  ·  view source on GitHub ↗
(boolean larger)

Source from the content-addressed store, hash-verified

1725 }
1726
1727 void changeFontSize(boolean larger) {
1728 int in = fontSizeIndex;
1729 if (larger) {
1730 fontSizeIndex++;
1731 if (fontSizeIndex==sizes.length)
1732 fontSizeIndex = sizes.length-1;
1733 } else {
1734 fontSizeIndex--;
1735 if (fontSizeIndex<0)
1736 fontSizeIndex = 0;
1737 }
1738 IJ.showStatus(sizes[fontSizeIndex]+" point");
1739 setFont();
1740 }
1741
1742 void saveSettings() {
1743 Prefs.set(FONT_SIZE, fontSizeIndex);

Callers 1

actionPerformedMethod · 0.95

Calls 2

showStatusMethod · 0.95
setFontMethod · 0.95

Tested by

no test coverage detected