Hi !
Thank you for the sample code. But i still have a problem. I can't cast my element to SVGTransformable interface because i get a
SVGOMSVGElement which not implements this interface.
The way i do it is : Object obj = mySvgDoc.getDocumentElement(); and this object is a SVGOMSVGElement object.
How could i retrieve a SVGTransformable object from a SVGDocument or from an Element in a SVGDocument ?
Best regards
Sylvain
----- Original Message ----- From: "Tonny Kohar" <[EMAIL PROTECTED]>
To: <batik-users@xml.apache.org>
Sent: Wednesday, February 16, 2005 7:01 PM
Subject: Re: How to apply more than 1 tranform to a SVGDocument
Hi,
My question is : - how could i apply some transformations to mySVGDocument before creating the updated graphics node to paint ?
I had a look to the SVGTransformList DOM interface but i could not find any method to get this object from my SVGDocument. I you have an idea, or an example, it would be great !
Here is the sample code to get SVGTransformList from an Element as in SVG DOM API SVGTransformList transformList = ((SVGTransformable)element).getTransform().getBaseVal();
Then you can use the transformList to set transform stuff.
Best Regards Tonny Kohar
-- Sketsa SVG Graphics Editor http://www.kiyut.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]