Hi Mike, Mike Haladin <[EMAIL PROTECTED]> wrote on 08/15/2006 04:28:11 AM:
> I seem to be unable to clone the SVGGraphics2D object. > > As I am drawing a large map, I would like to cache it and only draw the > figures each time. I would suggest drawing the map once. Call 'getRoot' to get the drawn map as an SVG fragment. You can then use DOM to clone this map into other SVG Documents. Then you can draw each of the modified 'figures' and append the results of calling 'getRoot' to one of the cloned copies of the base map. > However, the copied SVGGraphics2D object does not seem to have saved any > of the information. > > Is there a trick to creating an exact and duplicate SVGGraphics2D? Not really, it's just that what you really want is a duplicate of the DOM tree not the Graphics (just like you would want a copy of the BufferedImage not the DOM tree for a "normal" Graphics2D). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
