Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 36194 invoked from network); 12 Apr 2006 18:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2006 18:52:17 -0000 Received: (qmail 32621 invoked by uid 500); 12 Apr 2006 18:52:12 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 32610 invoked by uid 500); 12 Apr 2006 18:52:12 -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 32599 invoked by uid 99); 12 Apr 2006 18:52:12 -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 11:52:12 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [200.142.227.36] (HELO MAILER-DAEMONextech.com.br) (200.142.227.36) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 11:52:11 -0700 Received: from TIWS21 ([192.168.7.47]) by MAILER-DAEMONextech.com.br (8.13.4/8.13.4) with SMTP id k3CIsgNU001819 for ; Wed, 12 Apr 2006 15:54:42 -0300 Message-ID: <000501c65e62$925c8260$2f07a8c0@nextech.com.br> From: =?iso-8859-1?B?QW5kcukgwXZpbGE=?= To: References: Subject: Re: Synchronizing JSVGCanvas - Again Date: Wed, 12 Apr 2006 15:54:47 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks, Thomas. It is perfect now. I got a little confused with rendering and painting transform. For some reason I played a lot with this code but never occured to me that I could be applying the wrong transform. This is what happens after 14h work... Anyway, I thought that pan interaction changed only the painting transform, since is just repositioning a bitmap. So, what is the difference between rendering and painting transform? Why do we need both? ----- Original Message ----- From: To: Cc: Sent: Wednesday, April 12, 2006 3:37 PM Subject: Re: Synchronizing JSVGCanvas - Again > Hi Andre, > > Andr� �vila wrote on 04/12/2006 02:08:14 PM: > > > I add my DrawOverlay to it, drawing > > only a standard rectangle. When I try to pan the image, the rectangle > goes > > off on its own. If you would spare a few minutes on this, you could > easily > > reproduce this behavior using the following code: > > > > private class DrawOverlay implements Overlay { > > > > Shape rect = new Rectangle2D.Double(200,200,100,100); > > > > public void paint(Graphics g) { > > AffineTransform at = getPaintingTransform(); > > This should be: > AffineTransform at = getRenderingTransform(); > > The painting transform (if any) has actually already been applied for > you. > > > It's a bit strange, because it is essentially the same code as in > > TextSelectionManager.SelectionOverlay.paint(). What am I missing? > > The TextSelectionManager uses getRenderingTransform not > getPaintingTransform(). > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org > For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org