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.
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
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
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
4 matches
Mail list logo