I'm iterating through the nodes on a (built) GVTTree to access the individual shapes, and using these in a Swing application. (I need the shapes not a drawn image)

Using the clipart from openclipart, if i call:

Affinetransform currentTransform = node.getTransform();
//obtain the shape from the node's Painter...
Shape shape = currentTransform.createTransformedShape(shape);

approximately half of the clipart works beautifully.

If I use node.getGlobalTransform(), which from the docs appears to be what is required, then the other half of the clipart library works beautifully but not the original half!

I appreciate I'm trying to do something a bit out of the ordinary here :) but has anyone got any ideas on how I can distinguish between the svg files that require getTransform() and those that need getGlobalTransform()? Is there any relationship between the nesting of the nodes that I can use?

(I'm using JVM 1.3.1 and Batik-1.6 on WinXP)



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

Reply via email to