Thomas DeWeese wrote:
Dynamic modifications to an existing filter are not currently
tracked. If you create a new filter and set the filter property on
an element it should update.
If the above does not sound like your problem I'll take a look
at your example.
I'm creating a new filter each time. Unfortunately the code is rather
complex. I'm trying to boil it down to something digestible.
In brief, here's what I'm doing.
1. Dynamically create simple SVGDocument (runs in the Swing thread.)
2. Add filter to SVGDocument.
3. setSVGDocument(theDoc);
4. In UpdateManager thread, add <line> segments that use the new
filter.
5. Expect to see filter effects, but get nothing, or garbled graphics.
If I then do a setSVGDocument(getSVGDocument()) the canvas updates as
expected, and I see the filter effects correctly.
--
George Armhold
Rutgers University
eLearning Grant, DCIS
|