Hi Kovács,
Unfortunately what you are doing is 'illegal'. You have
multiple threads (one for each display) modifying the document
at the same time. I wouldn't say what you are trying to do is
impossible but it would probably involve significant additional
code to make it work with Batik.
The basic problem is likely that each document is intended to
only be associated with one Canvas. You might be able
to deep clone the document and thus provide each canvas with
it's own document. The listeners could then take care of updating
directly or notifying the other canvas's of the needed changes.
Kovács Lajos wrote:
Hi!
I need to display the same SVG file on multiple displays with
interactions on it.
Displaying was not a big deal, all the displays see the same
document, and even on every display I can modify the DOM
(ex. click on an elem => change the color of it) but only the
last display refresh the canvas. Have somebody ideea why?
Have somebody experience with this kind of setup?
Details:
When the first screen finished the rendering and the Document
is available, I made a new canvas and with the setDocument()
I set the first one. Then I register action listeners for every
"clickable" object. This repeats for every display.
When clicked an elem, the event listeners catch the event, and
made the modification of the DOM in the update queue of that
canvas. So event listeners for every display try to set the
color of the element.
Probably this is the problem, that only the first (that is
registered later == last display) set the Document with a real
change. The other listeners set the color, but this is not a
change anymore. That's why not got an update. This problem
I try to trick out, by modifying three times, but without
success. An update wasn't made.
Could be this the problem? If yes, have anybody a solution?
Best Regards,
Lajos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]