Errr, now I think I was looking in the wrong interface. Thank you Thomas and sorry for the distraction.

Regards,
Charles Abreu


On 9/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Charles,

"Charles Abreu" <[EMAIL PROTECTED]> wrote on 09/28/2006 09:23:26 AM:

>             SVGRoot.currentTranslate.x+=d;
>             SVGRoot.currentTranslate.y+=d;

> What I do is pan the entire document simply by modifying
currentTranslate
> property of svg root element via ecmascript, but I coudn't find a way to
do
> the same in Java, using Batik and dom api. Is there any glue to this? I
need
> to apply pan and zoom on documents loaded on JSVGCanvas.

   All of the Ecmascript DOM interfaces are also available in Java:


http://xmlgraphics.apache.org/batik/javadoc/org/w3c/dom/svg/SVGSVGElement.html#getCurrentTranslate()

   If you call 'setX(float x)' on the returned SVGPoint it will set
the x translate.  The methods are named slightly differently but they
are all available.

> I'm not very experienced with svg and Batik, so any help is welcome.


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



Reply via email to