Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Draw RenderedImage

Thank you very much for your plugin!!!!

But finally I'm going to use AWT, because I need to use the Java3D api and I think Java3D can't work on SWT. Even so, thanks for your plugin, surely I will need next time.

Now I have obtained the frame shows the map which is opened in uDig. The plugin updates automatically if I add a layer, or I make zoom, ... To achieve this I have used:

 - ContextModelListenerAdapter: it notifies me if a layer is removed

 - RenderListenerAdapter: it notifies if the user has zoomed, or move the map, ...

I don't know if these are the most suitable classes, but it works!!

I have a question: If I debug the plugin, I don't understand why RenderListenerAdapter.renderUpdate is called 3 times and RenderListenerAdapter.renderDone 2 times when I have made only one operation, for example Zoom-In. Maybe I haven't explain correctly, but I don't know how to explain.




From:  Jesse Eichar <jeichar@xxxxxxxxxxxxxxx>
Reply-To:  User-friendly Desktop Internet GIS <udig-devel@xxxxxxxxxxxxxxxxxxxxx>
To:  User-friendly Desktop Internet GIS <udig-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject:  Re: [udig-devel] Draw RenderedImage
Date:  Mon, 09 Jan 2006 11:06:44 -0800
>Hi,
>
>I've attached a plugin that opens a dialog showing the currently
>active map.  I hope this helps you.
>
>Jesse
>
>Iñigo Telleria Elola wrote:
>
>>I want to draw an RenderedImage (obtained from udig's map) in a SWT
>>shell. I have tried differents possibilties:
>>  1) with GC, but this object doesn't have any method to draw
>>RenderedImage (only Image).
>>2) with SWTGraphics, It doesn't work.
>>3) with Graphics2D, I don't know how to use.
>>  anybody has an idea how I can achieve?
>>  Thanks in advance
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>User-friendly Desktop Internet GIS (uDig)
>>http://udig.refractions.net
>>http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>>
>

><< swtDialog.zip >>

>_______________________________________________
>User-friendly Desktop Internet GIS (uDig)
>http://udig.refractions.net
>http://lists.refractions.net/mailman/listinfo/udig-devel


Back to the top