Hi Thomas and Dan,
 
Thanks for the replies.  It looks like I'll be able to get this done.  One more 
clarification:
 
   "The one thing you need to consider is that the rendering transform 
does interact with the viewing transform (From the viewbox).  So in 
the case that the window that is viewing the document is a different 
size/aspect ratio then you may need a different rendering transform 
to get the same 'view'. "

In a whiteboarding situation, the document is supposed to stay in sync between 
clients.  Assuming that we are syncing changes to the viewBox attribute, does 
this satisfy the need to manage the viewing transform?

Michael Bishop


________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thu 9/25/2008 6:34 AM
To: [email protected]
Cc: [email protected]
Subject: RE: Tracking changes to the rendering transform?




Hi Dan,  Michael,

"Dan Slater" <[EMAIL PROTECTED]> wrote on 09/23/2008 02:01:01 PM:

> Extend the JSVGCanvas and override the setRenderingTransform method.
> For example:

   Yes, this is how I would track changes to the rendering transform. 
We don't expose it through any of the Swing change API's. 

>         public void setRenderingTransform(final AffineTransform at) {
>             //System.out.println("JSVGCanvasX set rendering transform...");
>             setRenderingTransform(at, true);
>             Point2D.Double pt2d = new Point2D.
> Double(locationListener.getLastX(),locationListener.getLastY());
>             SVGSVGElement root = this.getSVGDocument().getRootElement();
>             if (root != null) setUserPositionXY(pt2d, root);
>        }

"Bishop, Michael" <[EMAIL PROTECTED]> wrote on 09/23/2008:

>> I'm in a whiteboarding situation where I want to communicate my 
>> "view" to other users. If I pan/zoom/etc, I want to be able to 
>> notify the other users as to what I'm looking at. I'm talking about 
>> view changes that do not modify the document.
> 
>> I believe I can do this by tracking the render transform. Is there a
>> way to listen for changes to the render transform? 

    See above... 

>> Is there anything else I have to think about tracking to achieve 
>> this goal? I know the "viewBox" attribute exists, but that's 
>> different; it's a modification to the document itself.

   The one thing you need to consider is that the rendering transform 
does interact with the viewing transform (From the viewbox).  So in 
the case that the window that is viewing the document is a different 
size/aspect ratio then you may need a different rendering transform 
to get the same 'view'. 

<<winmail.dat>>

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

Reply via email to