Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-11 Thread Jody Garnett
Okay I get it ... What uDig does is add a render callback; and every 100 or so draw callbacks is asks its UI thread to draw the image to the screen again. It is actually a bit more complicated in that we have a timer that will draw after 1,3,5, 5, 5 seconds; and the renderer is used to set a fl

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-11 Thread Jody Garnett
Not sure I understand: gc.drawImage( image ) Where image is the buffered image you are asking geotools to draw into on another thread Jody On 11/05/2010, at 5:25 PM, LSA wrote: > Hi Jody, > > >> - Draw the image as geotools is drawing into it... this is what uDig does. > > Can you ple

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-11 Thread Michael Bedward
Hi Sergey, > This would be really nice for us to have this feature, > our customers are crying because of time lag (datasets are large)... > Oh dear, I don't want them to cry ! I've linked this feature request to the rewrite of JMapPane and other swing module classes that I'm now doing... http:/

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-11 Thread LSA
Hi Jody, />> - Draw the image as geotools is drawing into it... this is what uDig does. /Can you please supply me with a code sample regarding how uDig does that? We really need this feature, our customers dislike the time lag (datasets are large). Thanks, Sergey On 5/6/2010 11:03 PM, Jod

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-06 Thread Michael Bedward
Hello, I've added this as a feature request... http://jira.codehaus.org/browse/GEOT-3069 Michael On 7 May 2010 02:03, Jody Garnett wrote: > Yes; a couple of ways. > - Draw the image as geotools is drawing into it... this is what uDig does. > - Get a volatile image and use that to draw into. It

Re: [Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-06 Thread Jody Garnett
Yes; a couple of ways. - Draw the image as geotools is drawing into it... this is what uDig does. - Get a volatile image and use that to draw into. It is tricky Java 2D programming (because you need to redraw if windows are moved in front of your image) but it is effective. Jody On 07/05/2010,

[Geotools-gt2-users] Step by step drawing VS offscreen buffer drawing

2010-05-06 Thread LSA
As far as I know, default geotools drawing mode is to draw on offline buffer and then render this buffer to the screen. On the opposing side, OpenJump (for example) draws everythink it can draw immediately. This give user the feeling of more responsive interface, because hey - something is going