Hi,

I searched for this, too and spent hours, but did not find anything. For SVGPoints there is matrixTransform(), as documented at the bottom of http://xmlgraphics.apache.org/batik/using/scripting/java.html. But with other (SVG)Elements, I am doing this in plain xml attributes:

String transformMatrix= "matrix(" + mat.getA() + " " + mat.getB() + " " + mat.getC() + " " + mat.getD() + " " + mat.getE() + " "
        + mat.getF() + ")";
    myElement.setAttribute("transform", transformMatrix);

Another way would be to create a SVGPoint, transform it to the position/rotation you want and copy the transform attribute to your other element. Not tried though...

If there is a better and nicer way... Would be great.

Regards
Paul.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to