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]

Reply via email to