Hi Cameron,

I tried
svgdoc.documentElement.currentRotate = 0;

but I get the following error:

Java class "org.apache.batik.dom.svg.SVGOMSVGElement" has no public instance 
field or method named "currentRotate"

Should I be trying something else?

Thanks,
Praveen

-----Original Message-----
From: Cameron McCormack [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 31, 2007 8:01 AM
To: [email protected]
Subject: Re: Rotate entire document

Hi Praveen.

Praveen Nayak:
> I have an image in SVG and I use Batik to display that. The user can
> Ctrl + Right Click Drag to rotate the entire image. Is there some way I
> can reset this rotation to 0 degrees using JavaScript code?

Yes, just assign 0 to document.documentElement.currentRotate.

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 
--------------------------------------------------------------------------------
Telelogic Lifecycle Solutions:
Helping You Define, Design & Deliver Advanced Systems & Software 
Learn More at www.telelogic.com 

Praveen Nayak 
Technical Leader 
Telelogic India Pvt Ltd 
#58, 1- 4 HM Towers,
Brigade Road, 
560 025 Bangalore 
India 

Phone: +91 (80) 419 95800 x327 
Fax: 
Mobile phone: 
[EMAIL PROTECTED] 
http://www.telelogic.com 

Telelogic - Requirements-Driven Innovation!
------------------------------------------------------------- 


The information contained in this e-mail, including any attachment or 
enclosure, is intended only for the person or entity to which it is addressed 
and may contain confidential material. Any unauthorized use, review, 
retransmissions, dissemination, copying or other use of this information by 
persons or entities other than the intended recipient is prohibited.


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

Reply via email to