Mark McKay wrote:
What I need to do is read in an SVG file, and then change the text of
several text nodes over time in response to user commands. The
sample code listed in Java Scripting doesn't help much, since it
seems to concern adding script like calls when a document loads.
Once you are in the run method you can use what ever DOM calls you
want to modify the document. At this point most modifications are
automatically tracked by Batik (the major exception is indirect
references - changes to a gradient will not update all the graphics
elements using that gradient for example).
How would I update a gradient or such and have my program reflect the
changes the next time it's rendered?
As I said most things are automatically tracked. In the specific
case of gradients/patterns/filters the easiest thing is to 'tweak'
the fill/stroke/filter of the elements that reference the modified
gradient/pattern/filter. By tweak I mean doing something like set
it to red then reset it to the URL reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]