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

Method init

ij/src/main/java/ij/gui/TextRoi.java:105–120  ·  view source on GitHub ↗
(String text, Font font)

Source from the content-addressed store, hash-verified

103 }
104
105 private void init(String text, Font font) {
106 String[] lines = Tools.split(text, "\n");
107 int count = Math.min(lines.length, MAX_LINES);
108 for (int i=0; i<count; i++)
109 theText[i] = lines[i];
110 if (font==null)
111 font = defaultFont;
112 if (font==null)
113 font = ImageJ.SansSerif14;
114 this.font = font;
115 setAntiAlias(antialiasedText);
116 firstChar = false;
117 if (defaultColor!=null)
118 setStrokeColor(defaultColor);
119 updateBounds();
120 }
121
122 /** @deprecated */
123 public TextRoi(int x, int y, String text, Font font, Color color) {

Callers 1

TextRoiMethod · 0.95

Calls 5

splitMethod · 0.95
updateBoundsMethod · 0.95
setAntiAliasMethod · 0.80
minMethod · 0.45
setStrokeColorMethod · 0.45

Tested by

no test coverage detected