My problem isn't to generate svg dom but in my applet the ploblem is 
to popolate a swing canvas (org.apache.batik.swing.JSVGCanvas) 
including svg creation. Therefore the problem is to conversion 
SVGDocument into swing component.

Code to do it is:
// generate SVGDocument with org.apache.batik
// and then the conversion in a swing component

JSVGCanvas canvas = new JSVGCanvas();
canvas.setSVGDocument(svgDocument);

Up to 100000-150000 elements is ok but over this number of elements 
the conversion is more slow. (I need 300000-500000 elements)

How do I do it?
There is another best methods for do it? 

Thanks a lot.
Alessandro Peruzzi  (sorry for my English)


--- In svg-developers@yahoogroups.com, Peter Thompson 
<[EMAIL PROTECTED]> wrote:
> There are too many elements, making it unable to display, or very 
slow.
>  
> I was able to display 365,000 rects in batik and deer park (mozilla 
nightly build with SVG enabled).  It takes a long time to display, 
and screen updates were very slow.  It would no be usable.
>  
> What are you really trying to do?  You probably aren't planning on 
looking at all 365,000 rectangles at the same time.  If you are, then 
you should probably should be be using a raster image.  Is there 
another way to solve the problem, like displaying only the rectangles 
that can be seen, and updating the DOM (via interactions with a web 
server) as the user pans?  Or if continguous rectanges are the same 
color, draw them as a single rectangle?
> 
> I also tried 1000 text elements, each with 365 characters (thinking 
that you could use a character that looks like a square) and that was 
also too slow.
>  
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> [Non-text portions of this message have been removed]




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to