You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Marshall Keith J NPRI <Ma...@Npt.NUWC.Navy.Mil> on 2008/05/20 19:42:41 UTC
SVG in JtabbedPane
Hi,
I add an svg file to a JtabbedPane. I noticed when I swtich between svg tabs there is a significant delay. Im not sure why the delay would occur after the first time its rendered. Any thoughts.
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: SVG in JtabbedPane
Posted by Rob Davis-5 <te...@robertjdavis.co.uk>.
Perhaps the delay is because it is being rendered every time you switch.
To confirm this I would step through the code in a debugger like that in
Eclipse. Then you will really know.
Maybe there is a way to stop this happening and perhaps there is a way to
cache the resultant bitmap or the state of the Graphics 2D canvas and
display that if there hasn't been any change. That could be faster.
You might want to look at thread:
http://www.nabble.com/Using-multiple-JSVGCanvas%27-in-a-CardLayout---Heap-Overflow-to17018867.html
This is not the same problem as yours although they are using a similar part
of batik to do a similar job so it might give you some inspiration.
--
View this message in context: http://www.nabble.com/SVG-in-JtabbedPane-tp17346317p17425141.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org