xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Synchronizing JSVGCanvas - Again
Date Wed, 12 Apr 2006 18:37:48 GMT
Hi Andre,

André Ávila <asantos@nextech.com.br> 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 
> off on its own. If you would spare a few minutes on this, you could 
> 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 

> 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 

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message