<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 07/22/2011 09:12 AM, Sorel wrote:
    <blockquote cite="mid:4E2922D6.6070606@geomatys.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <title></title>
      Hello<br>
      <br>
      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<br>
      only when it's finished (like qgis for example). That would imply
      a few small changes in the JMap2D.<br>
      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.<br>
      <br>
      johann<br>
      <br>
      On 07/21/2011 06:21 PM, Thys Meintjes wrote:
      <blockquote
cite="mid:CAHRf99nM_ourshyZ1UE+RwqhYJH9cUe42bVDPM7wPVVHxEhsGA@mail.gmail.com"
        type="cite">
        <div>My app adds&nbsp;TargetGraphic ::&nbsp;AbstractGraphicJ2D to the
          canvas at rates of minimum 1Hz. Calling canvas.refresh() with
          a large coverage (50M) loaded results in&nbsp;</div>
        <div>very&nbsp;perceptible&nbsp;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 ?</div>
        <div><br>
        </div>
        <div>&nbsp;private void addTarget(Target target) {</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;logger.debug("Target Arrived at Map: ",
          target.toString());</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;TargetGraphic tg = new TargetGraphic(canvas,
          target);</div>
        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;canvas.getContainer().add(tg);</div>
        <div>&nbsp;&nbsp; &nbsp;}</div>
        <div><br>
        </div>
        <div>Maybe a memory resident renderer in stead of the streaming
          renderer ? I really have little understanding of the geotk
          rendering bit...</div>
        <div><br>
        </div>
        <div>Thanks and regards</div>
        <br>
        -- <br>
        Thys Meintjes<br>
        <br>
        <br>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Geotoolkit mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Geotoolkit@lists.osgeo.org">Geotoolkit@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geotoolkit">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>