Thanks! Jonathan.

This makes things much cleaner and easier to deal with.

The only thing is rotation. It does not sound straight forward like the
other values (translate, shear, scale).

Is there a simple way to set/get rotate value? 
I tried something like this for setting it but it did not work:

String strTransform = elt.getAttributeNS(null,
SVGConstants.SVG_TRANSFORM_ATTRIBUTE);
TransformListParser p = new TransformListParser();
AWTTransformProducer tp = new AWTTransformProducer();
p.setTransformListHandler(tp);
p.parse(strTransform);
AffineTransform at = tp.getAffineTransform();  
at.rotate(Math.toRadians(Double.valueOf(rotateAngle)));


For getting it I had to parse the transform string myself to get rotate
value.

Note that my transform is like this: transform="matrix(a,b,c,d,e,f)
rotate(angle)". Should rotate be part of the matrix?

Any thoughts?



--
View this message in context: 
http://batik.2283329.n4.nabble.com/Read-Write-transform-values-tp4655190p4655199.html
Sent from the Batik - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to