xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Abreu" <charlesab...@gmail.com>
Subject Re: Zoom and pan via DOM interfaces
Date Fri, 29 Sep 2006 12:54:47 GMT
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, thomas.deweese@kodak.com <thomas.deweese@kodak.com> wrote:
>
> Hi Charles,
>
> "Charles Abreu" <charlesabreu@gmail.com> 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: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

Mime
View raw message