@deprecated replaced by IJ.log(), ResultsTable.setResult() and TextWindow.append(). There are examples at http://imagej.net/ij/plugins/sine-cosine.html
(String s)
| 607 | * http://imagej.net/ij/plugins/sine-cosine.html |
| 608 | */ |
| 609 | public static void write(String s) { |
| 610 | if (textPanel==null && ij!=null) |
| 611 | showResults(); |
| 612 | if (textPanel!=null) |
| 613 | textPanel.append(s); |
| 614 | else |
| 615 | System.out.println(s); |
| 616 | } |
| 617 | |
| 618 | private static void showResults() { |
| 619 | TextWindow resultsWindow = new TextWindow("Results", "", 400, 250); |
no test coverage detected