Re: How to NOT open windows above each other
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Apr 09, 2014; 4:15pm
URL: http://imagej.273.s1.nabble.com/How-to-NOT-open-windows-above-each-other-tp5007253p5007263.html
On Apr 9, 2014, at 5:49 AM, Burni wrote:
> Greetings,
>
> I'm working on a program in Beanshell.
> At one point, I'm opening a number of plot profiles which I then fit.
> So if I for example generate 5 plot profiles and fit each one, I'll have 10
> windows, which all open on top of each other.
> Is there a way to open windows so that they occupy an 'unused' part of the
> screen?
> I already found something that might help a little. With the
> setLocationAndSize()-function I can specify the location of the next opened
> window. But I would have to specify the position of every single window. Is
> there an automated function for what I have in mind?
You get get the profile data without displaying a plot window. For example, this JavaScript prints the mean, min and max value of the pixels along the current line selection:
imp = IJ.getImage();
pp = new ProfilePlot(imp);
profile = pp.getProfile();
ip = new FloatProcessor(profile.length,1,profile);
stats = ip.getStatistics();
print(stats);
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html