Hello Thomas,
Thank you very much for your reply. It is really amazing the way you take time 
to answer to everybody's queries. I have been watching this forum closely for 
quite some time now. I keep seeing your answers to almost everyones queries. I 
have wanted to tell you this for some time now, and when I got the answer to my 
query I thought it was the right time to appreciate your effort. I wish there 
would be a place in the forum where we could appreciate and thank people like 
you.

I found this link useful in my answer which suggests the same thing you told me.
http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200701.mbox/[EMAIL
 PROTECTED]

I did search the forum before posting this question, but I guess my search 
keywords were not very appropriate.

The only thing the above link fails to mention is that when one can one get 
access to the BridgeContext in the JSVGCanvas , and set this variable in your 
wrapper Rhino Interpreter. Because the bridgeContext is not immediately 
accesible to you when the SVGCanvas is constructed. The way I have done is got 
my Canvas view to implement the SVGLoadEventDispatcherListener and on 
svgLoadEventDispatchStarted I get the bridgecontext and set my variable in your 
interpreter wrapper. Please let me know if it is the correct way. So far I have 
found that when svgLoadEventDispatchStarted i am always able to find the 
bridgecontext. I definitely need to set my variable before the Rhinointerpreter 
starts evaluating the script. Hopefully my timing in exposing the variable is 
correct.

Thank you again,
Emmy
---------- Original Message ----------------------------------
From: [EMAIL PROTECTED]
Reply-To: [email protected]
Date:  Thu, 19 Apr 2007 06:11:03 -0400

>Hi Emmy,
>
>"Emmy Alex" <[EMAIL PROTECTED]> wrote on 04/15/2007 12:52:37 PM:
>
>> I have my own class MyJSVGCanvas which extends JSVGCanvas and I have
>> a member object for some logging purposes, in MyJSVGCanvas class. Is
>> there anyway that I can access this object in the org.apache.batik.
>> script.rhino.RhinoInterpreter class , I need it to store some values
>> i find in the script into that member object of MyJSVGCanvas class.
>
>   The BridgeContext has a method 'getInterpreter(String lang)' which
>you can use to get a reference to our wrapper around the Rhino 
>Interpreter.
>That wrapper has a method "bindObject(String name, Object obj)" which
>can be used to bind 'obj' to name 'name' in the Interpreter.  This
>then makes it possible to call methods on that object from script.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
 
             

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

Reply via email to