Thank you for the answer.

The reason why I don't want to use JSVGCanvas is memory saving. In my
project it is crucial and we've decided to give up with SVG DOM and
work only with gvt objects.

Currently I'm trying to change JGVTComponent as you suggested (still
have some refresh problem).

2009/12/22  <thomas.dewe...@kodak.com>:
> 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.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to