Login  Register

Re: Plugin announcement: Parallel Super-Resolution

Posted by Gabriel Landini on Jul 28, 2009; 12:57pm
URL: http://imagej.273.s1.nabble.com/Plugin-announcement-Parallel-Super-Resolution-tp3691130p3691134.html

Hi Piotr,

On Tuesday 28 July 2009  13:37:06 Piotr Wendykier wrote:

> Additional information about each component of the GUI appears as a
> tool tip text
> - the text displays when the cursor lingers over the component.
> For the scaling factors it says:
> "Scaling factor for x and y dimensions." and
> "Scaling factor for z dimension."

I was unaware of the tool tips! Yes, I see them now.

> http://etna.mcs.kent.edu/vol.28.2007-2008/pp149-167.dir/pp149-167.pdf

Great, thanks.

> This is a feature, not a bug. Some problems (killing threads, etc.)
> appear when the user
> decides to close the plugin while the computations are performed.
> Therefore, the only way
> to close the GUI is by using the Cancel button.

I am no Java expert, so forgive if this is completely wrong. Whatever the
Cancel button does can't it be also handled inside something like:

public void windowClosing(WindowEvent e) {
   // stop threads and all what "Cancel" does
}

I am asking because this is also used in the Colour Threshold plugin and now I
wonder if it is the right thing to do.

Cheers

Gabriel