You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Tonny Kohar <to...@kiyut.com> on 2005/07/12 19:21:00 UTC

Re: how to get values of translation or rotation of the attribute Transform?

Hi,

On Tue, 2005-07-12 at 14:44 +0200, bader houmad wrote:
> is there some way to get the translation or rotation values of an
> element:
> 
> <rect transform="translate(20,50) rotate(45,20,20)" fill="none"
> stroke=....... />

Maybe you could use SVG API SVGTransformList eg:
SVGTransformList transformList =
((SVGTransformable)element).getTransform().getBaseVal();

then you can iterate the tranformList to check for specific transform
value

Regards
Tonny Kohar

-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com
> 



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