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

Method makeText

ij/src/main/java/ij/macro/Functions.java:6042–6055  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6040 }
6041
6042 void makeText() {
6043 String text = getFirstString();
6044 int x = (int)getNextArg();
6045 int y = (int)getLastArg();
6046 ImagePlus imp = getImage();
6047 Font font = this.font;
6048 boolean nullFont = font==null;
6049 if (nullFont)
6050 font = imp.getProcessor().getFont();
6051 TextRoi roi = new TextRoi(x, y, text, font);
6052 if (!nullFont)
6053 roi.setAntiAlias(antialiasedText);
6054 imp.setRoi(roi);
6055 }
6056
6057 void makeEllipse() {
6058 ImagePlus imp = getImage();

Callers 1

doFunctionMethod · 0.95

Calls 8

getFirstStringMethod · 0.95
getNextArgMethod · 0.95
getLastArgMethod · 0.95
getImageMethod · 0.95
getProcessorMethod · 0.95
setRoiMethod · 0.95
setAntiAliasMethod · 0.80
getFontMethod · 0.65

Tested by

no test coverage detected