OK, I figured it out already. It was the event handler.
Sorry for the inconvenience if anyone looked into it.
--
Harm
Harm Brouwer wrote:
Dear Batik users,
I'm currently developing software for syntactic (linguistics)
visualization, using Batik. The software allows users to draw generative
grammars (Chomsky-like). Instead of editing node-labels in the tree by
showing a popup window, the researchers would like it to be interactive
in the tree. I realised this by building a text-interactor that acts
like a text editor.
All works fine, but there is a slight problem however. I don't want to
use an overlay, to show the edited text and update the DOM tree after
the interactor (which is manually initiated from an DOM mouse event
handler) finishes.
There are two reasons for this:
- I want to show updates directly on the screen (yes, this could be done
using an overlay)
- However, I want to outline the tree directly while adding or removing
a character, which is requires the step above.
So basically my question is. Is the Interactor delaying the DOM updates
or is it because the Interactor is initiated from a DOM event handler?
Is there a way to force the DOM tree update and make it synchronize or
update the JSVGCanvas?
Just to make sure, I explained everything clearly:
- There is a tree like:
http://www.languageinindia.com/nov2003/arabic1.jpg
- When a user double clicks on a text label (DOM Event Handler), I add
the text interactor to the interactor list for the JSVGCanvas and the
user is allowed to enter text or remove text, until ENTER is pressed.
- After every character I want the DOM tree to be updated and the dirty
area's to be repainted.
- I'm not sure if it is the Event Handler that delays the updates or
the interactor?
I hope I informed you all well enough!
Thank you,
Harm Brouwer,
University of Groningen
---------------------------------------------------------------------
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]