Hi Tomasz, Tomasz Chojnacki <chojn...@gmail.com> wrote on 12/20/2009 01:08:54 PM:
> I want to insert JGVTComponent into JScrollPane and have the cavas > (component) as large as SVG document. The problem is that for large > zooms rendering of whole svg extend consumes lots of memory, the > simplest way to avoid this is to render only currently visible box of > scroll pane and update the rendered part on the viewbox change. Why don't you use JSVGScrollPane? I see you are using a JGVTComponent rather than JSVGCanvas, but I would suggest simply adapting JSVGScrollPane to just the JGVTComponent. Or you could just use the JSVGCanvas and be done... > I've tried to override getRenderRect method of JGVTComponent but it only > refreshes JGVTComponent and not svg content itself. I've attached > simple test (SVGApplication.java) > > Is there a way to force rendering of specified svg content on > JGVTComponent (or any other panel) in explicitly pointed area ? > best regards It's possible but you wold have to mostly rewrite the JGVTComponent.