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

Method init

ij/src/main/java/ij/gui/MultiLineLabel.java:27–34  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

25 }
26
27 private void init(String text) {
28 StringTokenizer t = new StringTokenizer(text, "\n");
29 num_lines = t.countTokens();
30 lines = new String[num_lines];
31 line_widths = new int[num_lines];
32 for (int i=0; i<num_lines; i++)
33 lines[i] = t.nextToken();
34 }
35
36 // Figures out how wide each line of the label
37 // is, and how wide the widest line is.

Callers 2

MultiLineLabelMethod · 0.95
setTextMethod · 0.95

Calls 1

nextTokenMethod · 0.45

Tested by

no test coverage detected