Wow; why use JMapPane via an AWT_SWT bridge? If you are going to the trouble 
you can get better performance by asking the renderer to draw into your SWT 
Image directly.

The JMapPane serves as an example of using the rendering system; have a look at 
the code and report the background redraw problem you are seeing along with a 
patch.

Jody

On 08/07/2010, at 4:13 PM, LSA wrote:

> Hello everyone,
> 
> Recently I wrote about JMapPane refresh problem when it is used via 
> AWT_SWT bridge:
> http://www.listware.net/201007/geotools-gt2-users/12102-geotools-gt2-users-problem-with-jmappane-refresh-when-it-used-via-swtawt-bridge.html
> 
> However, I was able to reproduce it in ShapefileViewer, which simply 
> uses JMapPane (via Swing, no AWT_SWT):
> http://files.rsdn.ru/81424/refreshProblem2.PNG
> 
> To reproduce it under Windows XP, start 
> org.geotools.demo.swing.ShapefileViewer example, add some shapefile 
> layer, and slowly drag over map some Windows application (for example, 
> notepad).
> 
> One can notice, that redraw problem only touches areas of map with no 
> features, so basically it is background redraw problem. Are there some 
> means at geotools allowing 'more aggressive' redrawing of the backround?
> 
> Thanks in advance,
> Sergey
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to