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

Method setLine

ij/src/main/java/ij/text/TextPanel.java:1171–1178  ·  view source on GitHub ↗

Replaces the contents of the specified line, where 'index' must be greater than or equal to zero and less than the value returned by getLineCount().

(int index, String s)

Source from the content-addressed store, hash-verified

1169 must be greater than or equal to zero and less than
1170 the value returned by getLineCount(). */
1171 public void setLine(int index, String s) {
1172 if (index<0 || index>=iRowCount)
1173 throw new IllegalArgumentException("index out of range: "+index);
1174 if (vData!=null) {
1175 vData.setElementAt(s.toCharArray(), index);
1176 tc.repaint();
1177 }
1178 }
1179
1180 /** Returns the index of the first selected line, or -1
1181 if there is no slection. */

Callers 4

updateDebugWindowMethod · 0.95
handleLogCommandMethod · 0.80
runMethod · 0.80

Calls 1

repaintMethod · 0.45

Tested by

no test coverage detected