Greetings,

I'd like to inquire about the current state of Batik with respect to
dynamically updating documents via the DOM.  I've seen a few messages
in the list archives suggesting that some dynamic features work in the
1.5 beta, however my updates don't seem to work.  (I also tried the
latest version from CVS, no luck.)  What I'm doing is extending
JSVGComponent with a class that loads a document, and then modifies
the DOM programmatically via Java (no scripting.)  My changes never
seem to get displayed in the JSVGComponent.  The updates I'm doing are
pretty simple- I'm adding <svg> elements that contain <line> elements.
If I write out the updated SVG document to a file, I can successfully
view my added items with the batik-svgbrowser.

I also tried forcing a re-display by calling

   setSVGDocument(getSVGocument());

but I get a NullPointerException.

Should I just cool my heels and wait for 1.5 final, or is there a way
to force newly added DOM elements to be displayed?  Will dynamic
updates eventually be fast enough for implementing interactive
drawing?

Some background on what I'm doing, in case anyone finds this
interesting- I'm extending JSVGComponent to implement a
whiteboard-like drawing tool.  The basic idea is to implement
"scribbling" over a displayed SVG document.  The scribbles are
recorded with time indices, which I later use to generate an animated
SVG doc.  The generated SVG references the original SVG doc to use as
its background.  An example is worth a thousand words, so I'll point
you to http://erudycja.rutgers.edu/~armhold/svg/scribble.html.  You'll
need an SVG browser that supports animation.

Thanks for any help.


-- 
George Armhold
Rutgers University
eLearning Grant, DCIS


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

Reply via email to