[geotk] canvas refresh rates

Thys Meintjes sthysel at gmail.com
Thu Jul 21 12:21:35 EDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geotoolkit/attachments/20110721/4bfdd8d5/attachment.html


More information about the Geotoolkit mailing list