hi,

> I'm new in batik ...  I'm working on a SVG application which display a
> dinamic svg file in a JInternalFrame. I am using some like this
> "transform = translate(x, y)" to set an object in the canvas, at
> coordinate x and y. 
>  
> I wanna know how I can retrieve the value of x and y using batik.
> con you help me , please ?!

You can use SVG DOM API something like
SVGTransformList transformList =
((SVGTransformable)element).getTransform().getBaseVal();
SVGTransform transform = transformList.getItem(0);
...
>From there you can get the matrix which tell you the value of x and y

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



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

Reply via email to