The second sentence is true, Batik never updates the screen while it
is executing a script. The first part is not, in theory script could call
'suspendRedraw', set a timeout, let the script function exit, then
sometime
later in the timeout call 'unsuspendRedraw', Batik would likely redraw
once the script function exited even though it should not...
yes, thanks for clarifying.
Does Batik allow to update the screen on demand? It doesn't yet support
SVGSVGElement.forceRedraw() - is there any other method as a workaround?
No there is currently no way for script to trigger a repaint in the
middle
of script execution. I should say that implementing these methods
probably
would not be particularly hard (Batik already suspends redraws in some
cases,
so just setting a Boolean should suffice for suspend/unsuspend,
forceRedraw
is mostly just calling the existing 'repaint' method on the UpdateManager.
Since they seem like they might start being useful it may be worth
trying
to implement them...
yes, I'd be interested in using that feature.
Sometimes I have a longer script execution and want to show the user
progress (like e.g. calculating a surface profile from a digital
elevation model).
Thanks,
Andreas
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093 Zurich, Switzerland
Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: [EMAIL PROTECTED]
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]