Re: plugin Grid_Overlay generates error
Posted by
Rudolf Oldenbourg on
May 27, 2009; 4:05pm
URL: http://imagej.273.s1.nabble.com/plugin-Grid-Overlay-generates-error-tp3692400p3692402.html
Michael, you were right on both accounts.
The View5DImageJ collection of plugins defines a ImageCanvas class.
After removing it from my plugins folder, the problem went away.
Restoring View5DImageJ plugins and making the edit you suggested in
Grid_Overlay.java fixed the problem as well.
Thank you very much!
Rudolf
On May 27, 2009, at 10:34 AM, Michael Schmid wrote:
> Hi Rudolf,
>
> it seems that you have a local plugin that defines an ImageCanvas
> class?
> Then, write
> ij.gui.ImageCanvas ic = imp.getCanvas();
> in line 44.
>
>
> Michael
> ________________________________________________________________
>
> On 27 May 2009, at 15:54, Rudolf Oldenbourg wrote:
>
>> When compiling the current Grid_Overlay.java plugin, I get the
>> error message appended below.
>> I'm running ImageJ Version 1.42o on a MacBook Pro OSX 10.5.7 with
>> Java 1.5.0_16.
>>
>> Can somebody help me to fix this problem?
>>
>> Thank you,
>> Rudolf
>>
>> Error message:
>>
>> /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:44:
>> incompatible types
>> found : ij.gui.ImageCanvas
>> required: ImageCanvas
>> ImageCanvas ic = imp.getCanvas();
>> ^
>> /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:47: cannot
>> find symbol
>> symbol : method setDisplayList(<nulltype>)
>> location: class ImageCanvas
>> ic.setDisplayList(null);
>> ^
>> /Applications/ImageJ/plugins/Graphics/Grid_Overlay.java:49: cannot
>> find symbol
>> symbol : method
>> setDisplayList(java.awt.geom.GeneralPath,java.awt.Color,<nulltype>)
>> location: class ImageCanvas
>> ic.setDisplayList(path, getColor(), null);
>> ^
>> 3 errors