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

Method append

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

Adds one or more lines to the end of this TextPanel.

(String text)

Source from the content-addressed store, hash-verified

240
241 /** Adds one or more lines to the end of this TextPanel. */
242 public void append(String text) {
243 if (text==null) text="null";
244 if (vData==null)
245 setColumnHeadings("");
246 if (text.length()==1 && text.equals("\n"))
247 text = "";
248 String[] lines = text.split("\n");
249 for (int i=0; i<lines.length; i++)
250 appendWithoutUpdate(lines[i]);
251 if (isShowing()) {
252 updateDisplay();
253 unsavedLines = true;
254 }
255 }
256
257 /** Adds strings contained in an ArrayList to the end of this TextPanel. */
258 public void append(ArrayList list) {

Callers 3

showArrayInspectorMethod · 0.95
showMethod · 0.95

Calls 9

setColumnHeadingsMethod · 0.95
appendWithoutUpdateMethod · 0.95
updateDisplayMethod · 0.95
isShowingMethod · 0.80
lengthMethod · 0.65
equalsMethod · 0.45
splitMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected