Hello everybody,

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.

I have added an action Listener to JSVGCanvas. that is
addSVGDocumentLoaderListener(new SVGDocumentLoaderAdapter)
    The sample code is like this:

          canvas.addSVGDocumentLoaderListener(new SVGDocumentLoaderAdapter)
        {
        public void documentLoadingStarted(SVGDocumentLoaderEvent e )
           {
              System.out.println("Document Loading..........");
              }
       public void documentLoadingCompleted(SVGDocumentLoadEvent e )
           {
           System.out.println("DocumentLoaded");
              }
         }


And when I load small graphs it working fine and SVG's are displayed. But
with Big bar graphs the status

"Document Loading " is never ending and hangs there like that.

             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.

I have seen a documents at
http://www.svgopen.org/2003/papers/Incremental_SVG_mobility_and_update/ and
is for Mobile (J2ME) applications.

 and one more at http://www2002.org/CDROM/refereed/502/  this says only
about doing it using Authoring Tools (Visio) for accomidating the adaptivity
of SVG documents at client side for different display devices.

But they did not mention any thing about how to modify explicitly our SVG
files inorder to load them incrementally.

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.

Finally My aim is to load even Big SVG documents and display.


Can anybody suggest some method or reference to do it?

Thanks in advance.

-
        \\\\\\  //////
        /            \
        |  \\     //  |
      ( |  (.)  (.)  |)
----o00o---(_)---o00o-----------------

Regards,
Ravi.Thati
Our attempts may fail but we should fail to attempt.
-----ooo0-------------------------------
    (     )     0ooo
     \   (      (     )
      \__)     )    /
                (__/

Reply via email to