Hello,

We're using JSVGCanvas to show the SVG content in the follwing way :

1. Svg file is generated on the server
2. Our viewer, a subclass of JSVGCanvas, calls
JSVGDocument.loadSVGDocument(URL path to the svg file)

It takes at least 5secs to draw that svg file (8K, it contains a lot of
group <g> blocks with basic elements like <rect> and <text> inside).
I'll certainly try to increase the size of JVM-heap at startup, but apart
from that, Is there any way on the application level to accelerate the
process ?

When the file is succesfully loaded and displayed, we start manipulating
some of the properties of the resulting SVGDocument in the following way :

1. SVGDocument svgDoc = JSVGDocument.getSVGDocument();
2. Update it as necessary
3. JSVGDocument.setSVGDocument(svgDoc) - as a result the SVG view is
updated.

The problem is that JSVGDocument.setSVGDocument() causes the whole view
redrawn, which takes few seconds. If I call repaint(), it has no effect.
Is there any way to cause JSVGDocument to redraw only those parts of
SVGDocument which have really changed ?
Again, apologies if these questions have already been answered before
Thanks
Sergey Beryozkin




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

Reply via email to