Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 24391 invoked from network); 12 Apr 2006 15:55:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2006 15:55:50 -0000 Received: (qmail 96137 invoked by uid 500); 12 Apr 2006 15:55:48 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 96124 invoked by uid 500); 12 Apr 2006 15:55:48 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 96113 invoked by uid 99); 12 Apr 2006 15:55:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 08:55:48 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of thomas.deweese@kodak.com designates 192.232.121.200 as permitted sender) Received: from [192.232.121.200] (HELO smtp1.kodak.com) (192.232.121.200) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 08:55:47 -0700 Received: from roc-us-e1000-109.kodak.com (roc-us-e1000-109.kodak.com [192.232.121.189]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id k3CFtPd13134 for ; Wed, 12 Apr 2006 11:55:25 -0400 (EDT) Received: from (150.221.122.53) by roc-us-e1000-109.kodak.com via smtp id 683a_c1717ad8_ca3c_11da_9f04_0002b3e8d59a; Wed, 12 Apr 2006 11:55:24 -0400 In-Reply-To: <000c01c65e37$b7940060$2f07a8c0@nextech.com.br> To: batik-users@xmlgraphics.apache.org Cc: batik-users@xmlgraphics.apache.org Subject: Re: Synchronizing JSVGCanvas - Again MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: thomas.deweese@kodak.com Date: Wed, 12 Apr 2006 11:55:22 -0400 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(Release 6.5.4FP1|June 19, 2005) at 04/12/2006 11:55:25 AM, Serialize complete at 04/12/2006 11:55:25 AM Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Andre, Andr=E9 =C1vila wrote on 04/12/2006 09:48:01 AM: > They both could be holding SVG documents. Ohh, the way you were talking it sounded like the top was empty and you had replaced it's paint method... > It seems a very good idea. I couldn't find much on using overlays in the > list, so maybe you can point me some further directions. The Source code? There really isn't much to know... > I implemented the DrawOverlay class as an inner class of my SVG canvas] > private class DrawOverlay implements Overlay { >=20 > public void paint(Graphics g) { > Graphics2D g2d =3D (Graphics2D)g; > drawTool.drawShapes(g2d); // Redraw all shapes > repaint(); // Calls repaint on owner SVGCanvas Don't call repaint this should lead to an infinite loop. If your list of shapes changes you will need to trigger a repaint of the canvas, it will then call your overlay to paint... > So here's my question: when is the overlay paint() method called? My=20 first > guess was that it would be called every time the canvas repaint() (or > paint()?) was called, but I see this is not the case. It is called whenever the canvas is painted - if the canvas has an offscreen image (i.e. it is rendering an SVG document), which from your earlier talk I'm guessing your top Canvas doesn't. I would lean towards considering this behavior a bug (it's easy to fix, move the loop at the=20 end of batik.swing.gvt.JGVTComponent.paintComponent outside the check if the image is null). --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org