Login  Register

Re: plugin Grid_Overlay generates error

Posted by Michael Schmid on May 27, 2009; 2:34pm
URL: http://imagej.273.s1.nabble.com/plugin-Grid-Overlay-generates-error-tp3692400p3692401.html

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