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

Method changeFontSize

ij/src/main/java/ij/text/TextWindow.java:403–417  ·  view source on GitHub ↗
(boolean larger)

Source from the content-addressed store, hash-verified

401 }
402
403 void changeFontSize(boolean larger) {
404 int in = fontSize;
405 if (larger) {
406 fontSize++;
407 if (fontSize==sizes.length)
408 fontSize = sizes.length-1;
409 } else {
410 fontSize--;
411 if (fontSize<0)
412 fontSize = 0;
413 }
414 IJ.showStatus(sizes[fontSize]+" point");
415 font = null;
416 setFont();
417 }
418
419 public static void setFont(String name, int style, int size) {
420 font = new Font(name,style,size);

Callers 1

actionPerformedMethod · 0.95

Calls 2

showStatusMethod · 0.95
setFontMethod · 0.95

Tested by

no test coverage detected