xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: updating source
Date Sat, 13 Mar 2004 20:34:16 GMT
Danny Browne wrote:

> any1 any ideas on how i can update hte source of an SVG document displayed 
> in a scrollPane without saving and reloading the document? the image and 
> source are on a switchable tabbedPane so i want to update the source each 
> time an action is carried out.

Hi Danny,
    There is currently no support for 'live' updating of a source view.
Such a thing could be written, and it is even possible that someone
has done so using DOM mutation events and a sort of 'map' of what
characters came from what parts of what elements.  But there isn't
anything like that currently in Batik.

    If you want to update the Source view you don't have to save and
load the document you could just serialize it to a large string in
memory and set that as the contents of the Source view.  This would
save the trip to disk and back.



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message