Re: Rendering part of svg document at specified position in JGVTComponent
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
Re: Rendering part of svg document at specified position in JGVTComponent
Hi Tomasz, My previous post with same topic has some error, so I'm sending it again. Weird... In fact I received the previous message properly (i.e., in my email) but it doesn't display well in the official mailing list archive [1]. An unofficial archive displays it as expected [2], though... I'd suggest that, when creating a new thread, you didn't forward from another thread (apparently this was the case) nor reply to a previous thread and change subject (also a common mistake), as this may confuse the mailing lists: as a reply/forward messages have embedded metadata about the original message, the new thread may not appear as desired (typically, for replies it is displayed out of order). Regards, Helder [1] http://old.nabble.com/Fwd%3A-Rendering-part-of-svg-document-at-specified-position-in--JGVTComponent-td26856784.html [2] http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200912.mbox/%3c8ce4d09b0912190910o1f33a741o90b080b1cc724...@mail.gmail.com%3e - To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org