Got it, Thomas.

I was sure you would write only a few lines and make things as clear as
(clean) water. :)

Again, many thanks for your invaluable help!



> Hi Andre,
>
> André Ávila <[EMAIL PROTECTED]> wrote on 04/12/2006 02:54:47 PM:
>
> > 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?
>
>    The painting transform is used when doing 'interactive' changes
> to the transform (like dragging, or zooming, or rotating) to display
> the offscreen buffer providing quick feedback but once the interactive
> updates are done the document is re-rendered with the result of
> concatenating the rendering transform and the painting transform.
>
>    So the painting transform is used when 'painting' the display
> with the most recently rendered offscreen bitmap version of the
> SVG document.
>
>    The rendering transform is used when rendering the SVG document
> to the offscreen bitmap.
>
>
> > ----- Original Message ----- 
> > From: <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Cc: <[email protected]>
> > Sent: Wednesday, April 12, 2006 3:37 PM
> > Subject: Re: Synchronizing JSVGCanvas - Again
> >
> >
> > > Hi Andre,
> > >
> > > André Ávila <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to