Hi Ravi,

"Ravi ravi" <[EMAIL PROTECTED]> wrote on 03/29/2007 06:07:51 AM:

> I have been using batik-1.6 in my project to display some images and
> graphs. And its not a mobile application. Just a Java application.
> 
> But some of my generated graphs are too big. And
>  If i have to say how would they be , they are like long bar graphs 
> which I want to display on my Java Canvas. (JSVGCanvas).
> 
> The problem is that the SVG document starts downloading but never 
> ends. I mean the status of the SVG is remaining only 
> documentLoadingStarted.

   Do you get a message like 'out of memory' on the console?

>               I have been searching in the web,and found a concept 
> called "Incremental loading of SVG files" which will allow us to 
> load the SVG files  progresssively  or chunck by chunck. But I 
> didnot get any information of how can we do it or how can we make 
> our SVG documents to be loaded incrementally. 

   Well if you set the JSVGCanvas to ALWAYS_DYNAMIC you can dynamically
append (and remove) content from the document and the display will be
updated accordingly (you must make sure that all modifications are
made in the Canvas's UpdateManager's Runnable Queue - read the FAQ).

   To do this you would have to know how to read XML documents
in pieces and then import those pieces into the displayed document.
Alternately you could potentially build your graph on the fly 
(using methods like createElementNS) from the underlying data and 
append the dynamically generated SVG to the document.

>  And I have noticed in the SVG1.2 Specification a concept called 
> Progressive Rendering. http://www.w3.org/TR/2004/WD-
> SVG12-20041027/progressiverendering.html
> How far it can be used to load SVG documents. Which Batik versions 
> implemented that concepts.

   Batik does not implement progressive rendering.  We only render
when the document is fully loaded.  But by loading a small initial
document and the appending the rest of the data later you can
simulate this.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to