Potts, David wrote:
I am developing a tool that displays a SVG image(SVGCanvas), after doing 3-5 enlargements I get an Out of Memory exception, a check with
freeMemory( )/totalMemory() indicates that there is still a sizable amount memory available
I am aware that Batik works on an alternative stack is there any way of catching the OutOfMemory exception?
Someone else posted a response.
Is there a better solution to scrolling a SVG image than to use a SVGCanvas in a scrollable Panel, I did think about using a JViewport and getting batik to perform the scrolling, but that seems to be using a sledge hammer to crack a walnut?
Read the archives - subject "JSVGCanvas in JScrollPane again..." in short Zach DelProposto is working on implementing a scrolling component on top of the JSVGCanvas - this is the only easy way to avoid the above problem (you are getting a offscreen buffer the size of the zoomed document!).
David.
*********************************************************************************** This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to TANDBERG Television. If received in error please notify the sender and destroy the original message and attachments.
www.tandbergtv.com ***********************************************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]