Re: [svg-developers] Problem in seeing the Java variable in java script

2005-10-19 Thread thomas . deweese
Hi Nathan, For various reasons we 'hide' many of the internal Batik packages from JavaScript. This is most likely the reasons for your problems. It is also _really_ icky to be making your changes directly in the Batik sources. You should subclass the JSVGViewFrame in your own package.

Re: [svg-developers] Problem in seeing the Java variable in java script

2005-10-19 Thread thomas . deweese
Hi Nathan, You can take a look at test-sources/org/apache/batik/swing/JSVGCanvasHandler.java In particular the following code both binds a Java object into the interpreter and calls code from the script: public static final String REGARD_TEST_INSTANCE = "regardTestInstance"; public

[svg-developers] Problem in seeing the Java variable in java script

2005-10-19 Thread sent1729
Thomas DeWeese, I tried to look in to 'bindObject' method on the batik.script.Interpreter, but I could not understand how to bind any java object from this 'bindObject' method. Can you please provide any links that explains how to do it. Also this is what I did with RhinoInterpreter.java

[svg-developers] Problem in seeing the Java variable in java script

2005-10-19 Thread sent1729
Cameron McCormack, Yes now iam able to access the other packages by adding prefix "Packages",. I am running a java class file and i would like to see a variable that is inside the java class from the javascript. This is what I do, IN JAVA package org.apache.batik.apps.svgbrowser; public clas