SVG & Batik - RunnableQueue

2003-10-01 Thread Denis Bohm
I have an application that I would like to implement using SVG and the Java Language Binding Scripting. I have an SVG document and a Java EventListenerInitializer that is working in Squiggle. So far, so good. Now I would like to sping off a thread that creates a socket connection and listens for

Re: Scripting with Java Error

2003-10-01 Thread Thomas DeWeese
Denis Bohm wrote: I think the problem was that there was trailing whie space after the class name. I removed that and now the Java class is loaded. Good! However, the onload event listener doesn't seem to be getting called... Check the spec, the DOM event names are not the same as the event a

Re: Scripting with Java Error

2003-10-01 Thread Denis Bohm
Looks like my other problem was using "onload" rather than "SVGLoad". Confusing since "onload" seemed to work from JavaScript... So I'm running now. - Original Message - From: "Denis Bohm" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 2:22 PM

Re: Scripting with Java Error

2003-10-01 Thread Denis Bohm
I think the problem was that there was trailing whie space after the class name. I removed that and now the Java class is loaded. However, the onload event listener doesn't seem to be getting called... - Original Message - From: "Denis Bohm" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL

Re: Scripting with Java Error

2003-10-01 Thread Denis Bohm
Sorry - this was due to a build problem on my part. I have squiggle running in the Forte debugger now. - Original Message - From: "Denis Bohm" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 1:34 PM Subject: Re: Scripting with Java Error > Th

Re: Scripting with Java Error

2003-10-01 Thread Denis Bohm
The default with my setup is that the clases go into the sources tree, so I added another check for that in setDevBase and added a new permission entry for sources. Now it gets farther and I see the error shown below. Any idea why that one is happening? java.lang.NoSuchFieldError: OPACITY

Re: Batik Plugin?

2003-10-01 Thread Thomas DeWeese
Denis Bohm wrote: Can Batik be run as an Internet Explorer Plugin? In the same way as the Adobe SVG Viewer? Not that I am aware of. Some people have played with using Batik as an applet. You can also start it from a web page using Java Web Start, but AFAIK you can't use java to handle a parti

Re: Scripting with Java Error

2003-10-01 Thread Thomas DeWeese
Actually I think the problem may be with forte. The batik security policy needs to know the root of the Batik 'distribution' so it can grant appropriate permissions. The way it does this when running from class files (it does something different for jar files) is it get's the URL to one of the clas

Batik Plugin?

2003-10-01 Thread Denis Bohm
Can Batik be run as an Internet Explorer Plugin? In the same way as the Adobe SVG Viewer? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue

2003-10-01 Thread Denis Bohm
That did it! Thanks! - Original Message - From: "Thomas DeWeese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 11:34 AM Subject: Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue > Denis Bohm wrote: > > > I shut down my an

Re: Scripting with Java Error

2003-10-01 Thread Denis Bohm
I tried all the different settings and don't see any difference - still the same error. I tried to run squiggle from Forte in the debugger, but I get: java.lang.Error at org.apache.batik.util.ApplicationSecurityEnforcer.setDevBase(ApplicationSecu rityEnforcer.java:345) at org.apac

Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue

2003-10-01 Thread Thomas DeWeese
Denis Bohm wrote: I shut down my animation timer and I no longer see the exception. I still have to reload twice to get the document to appear. I'm doing: animationTimer_.shutdown(); // and waits for thread to stop canvas_.setSVGDocument(null); // create a new document canvas_.setSVGDocument(new

Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue

2003-10-01 Thread Denis Bohm
Hi Thomas, I shut down my animation timer and I no longer see the exception. I still have to reload twice to get the document to appear. I'm doing: animationTimer_.shutdown(); // and waits for thread to stop canvas_.setSVGDocument(null); // create a new document canvas_.setSVGDocument(newDocume

Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue

2003-10-01 Thread Thomas DeWeese
Denis Bohm wrote: Hi Thomas, My animation timer doesn't cache anything (including the runnable queue) - it get's it from the canvas each time an animation is activated. So it appears that during a reload a canvas can have a runnable queue still around - but one that has exited? I don't think I

Re: Scripting with Java Error

2003-10-01 Thread Thomas DeWeese
Hi, Perhaps you have security settings set differently in Squiggle. Preferences->Browser Options->Security Settings Denis Bohm wrote: Hi, Glad to hear that it works for someone. I'm running out of a fresh CVS checkout using 'ant squiggle'. Still not working for me... :^( Denis - Orig

Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue

2003-10-01 Thread Denis Bohm
Hi Thomas, My animation timer doesn't cache anything (including the runnable queue) - it get's it from the canvas each time an animation is activated. So it appears that during a reload a canvas can have a runnable queue still around - but one that has exited? I don't think I understand which ca

Re: Scripting with Java Error

2003-10-01 Thread Denis Bohm
Hi, Glad to hear that it works for someone. I'm running out of a fresh CVS checkout using 'ant squiggle'. Still not working for me... :^( Denis - Original Message - From: "Christophe Jolif" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 2:1

Re: osx bug?? rotate animation jumps

2003-10-01 Thread manuel berney
anyone has a clue ?? I tried to do an infinite rotate with java2d on OSX and i don't have the rotate problem i have with my svg - batik code does the JSVGCanvas do an affineTransform to a CanvasGraphicNode when my svg is updated (see code in previous post) ?? ---

New Batik Download Structure and Nightly CVS snapshots

2003-10-01 Thread Thomas DeWeese
Hi all, This is to let you know that Batik is now using the Apache Mirroring system to distribute releases. This makes it important that you verify the integrity of releases when you download them from servers other than www.apache.org it's self (see 'verifying a distribution' on the install p

Re: JSVGComponent dynamic DOM update, invokeAndWait threading issue

2003-10-01 Thread Thomas DeWeese
Hi Denis. It looks to me like you need to shut down your SVGStage.AnimationTimer before you 'unload' the current document (or load a new document). Since this class appears to be 'outside' of Batik there is no way for us to shut it down for you. If it is really on a Java Timer I believe you

Re: Scripting with Java Error

2003-10-01 Thread Christophe Jolif
Denis, This is working fine for me. Which version of Batik are you using? You need at least 1.5 (not a beta). Denis Bohm wrote: I'm trying to script using Java according to the SVG 1.1 specification: http://www.w3.org/TR/SVG11/java.html But when I try to load my demo.svg file into Squiggle I g