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

Method clear

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

Deletes all the lines.

()

Source from the content-addressed store, hash-verified

947
948 /** Deletes all the lines. */
949 public synchronized void clear() {
950 if (vData==null) return;
951 vData.removeAllElements();
952 iRowCount = 0;
953 selStart=-1; selEnd=-1; selOrigin=-1; selLine=-1;
954 adjustVScroll();
955 tc.repaint();
956 }
957
958 /** Selects all the lines in this TextPanel. */
959 public void selectAll() {

Callers 7

errorMethod · 0.95
updateDebugWindowMethod · 0.95
showArrayInspectorMethod · 0.95
resetCounterMethod · 0.95
setResultsTableMethod · 0.95
showMethod · 0.95

Calls 2

adjustVScrollMethod · 0.95
repaintMethod · 0.45

Tested by

no test coverage detected