Re: Results table questions
Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Results-table-questions-tp3688966p3688967.html
On Monday 15 Mar 2010 15:33:41 you wrote:
> 2) According to the API documentation for v1.43r, IJ.write(String) is
> deprecated in favor of IJ.log(String). Does anybody know why? I don't
> care if the window my user gets the results in says "Results" or "Log" at
> the top, but as far as I know, the log file lacks the equivalent of
> IJ.setColumnHeadings, IJ.isResultsWindow, etc.
It is not just a matter or window title, so maybe one should care about this.
You can retrieve the data back from the results table (from another plugin or
a macro) if it was put there in the right way via rt.addValue() or
rt.addLabel() instead of IJ.write().
If you just IJ.write to it, you'll see the data in the window, but you will
not be able to retrieve it programatically (well maybe you can, but not easily
column/row-wise). I guess (but might be wrong) this is the reason for
suggesting to use "log" instead of "write".
Cheers,
G.