Login  Register

Re: Image Management in ImageJ

Posted by Anderson Vinícius on Jun 25, 2010; 1:58pm
URL: http://imagej.273.s1.nabble.com/Image-Management-in-ImageJ-tp3687820p3687824.html

Hi Volker,

Thank you very much for your answer. This is really going to help me.

> I had already tried to extend the ImageWindow class but as the
ImageWindow()
> constructor is set as private I can't do it.
>> Which ImageJ version is this? In the ImageJ version I have at hand
>> (1.43s) I see no ImageWindow constructor without arguments and since
>> other constructors exist the default constructor does not exist anymore.
>> Can't you use the public constructor ImageWindow(String title) ?
I don't know why at home my Netbeans was saying that, but I couldn't do it.
Nonetheless, here at work I tested to extend the ImageWindow class and it
worked. I've done a little test project and it works fine. (As far as I get
home, I'll test it again.)

Another example I've found that does what I wanted to do is the Yawi_2D
plugin.

Finally, the key points are to extend the ImageWindow class and to add the
necessary listeners to the window.

[]s
--
Anderson.

On 25 June 2010 11:11, Volker Baecker <[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
> I did this several times. If you want you can download
> http://www.mri.cnrs.fr/mriwiki/uploads/mri-cia/mri-cia-source.zip
> and have a look at
> /MRI Cell Image Analyzer/src/tools/multipleImageWindow/
> or at
> /MRI Cell Image Analyzer/src/objectModelingWorkbench/
> I think it usually didn't work without using some private code
> somewhere, by either copying it or calling it via reflection, which
> risks to get broken sometimes. So a clean way to do this would indeed be
> very nice.
>
> > I had already tried to extend the ImageWindow class but as the
> ImageWindow()
> > constructor is set as private I can't do it.
> Which ImageJ version is this? In the ImageJ version I have at hand
> (1.43s) I see no ImageWindow constructor without arguments and since
> other constructors exist the default constructor does not exist anymore.
> Can't you use the public constructor ImageWindow(String title) ?
>
> Volker
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkwkcswACgkQ0gXPLVKexCczbwCfQFWPh3xVBJJskXaZecyoCjN0
> 5IkAn1QNZHlPza9bHxpQzmGXsCmYDdCv
> =eIBc
> -----END PGP SIGNATURE-----
>
> --
> passerelle antivirus du campus CNRS de Montpellier
> --
>