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'.