[geotk] canvas refresh rates

Sorel johann.sorel at geomatys.fr
Sat Jul 23 07:36:44 EDT 2011


On 07/22/2011 09:12 AM, Sorel wrote:
> Hello
>
> You can find a boolean parameter 'statefull' on the JMap2d 
> constructor. It will try to cache more informations then the normal 
> one. What could be done is to replace the image displayed on the jmap
> only when it's finished (like qgis for example). That would imply a 
> few small changes in the JMap2D.
> I won't be able to look at it before 2weeks. Maybe you could have a 
> look a the code and submit a patch for this? you will see in the code 
> it uses a Volatile Image, the idea is to copy it to a bufferedImage 
> and only replace it when the painting on the volatile image is finished.
>
> johann
>
> On 07/21/2011 06:21 PM, Thys Meintjes wrote:
>> My app adds TargetGraphic :: AbstractGraphicJ2D to the canvas at 
>> rates of minimum 1Hz. Calling canvas.refresh() with a large coverage 
>> (50M) loaded results in
>> very perceptible refreshing of the map (map = new 
>> org.geotoolkit.gui.swing.go2.JMap2D() ); . Is there a better way to 
>> add "dynamic" graphics to the map than what I'm doing here ?
>>
>>  private void addTarget(Target target) {
>>         logger.debug("Target Arrived at Map: ", target.toString());
>>         TargetGraphic tg = new TargetGraphic(canvas, target);
>>         canvas.getContainer().add(tg);
>>     }
>>
>> Maybe a memory resident renderer in stead of the streaming renderer ? 
>> I really have little understanding of the geotk rendering bit...
>>
>> Thanks and regards
>>
>> -- 
>> Thys Meintjes
>>
>>
>>
>> _______________________________________________
>> Geotoolkit mailing list
>> Geotoolkit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geotoolkit/attachments/20110723/156eb74c/attachment.html


More information about the Geotoolkit mailing list