Hello, I am programming in Java and using the Batik's API (using the SVGGenerator2D). I want to create groups of elements (<g></g> in svg) and i don't understand how to do it.
For example, this is some code : // Get a DOMImplementation DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation(); // Create an instance of org.w3c.dom.Document Document document = domImpl.createDocument(null, "svg", null); // Create an instance of the SVG Generator SVGGraphics2D svgGenerator = new SVGGraphics2D(document); // Draw Rectangles svgGenerator.setPaint(Color.black); svgGenerator.drawRect(10, 10, 100, 100); svgGenerator.drawRect(10, 10, 100, 20); svgGenerator.drawRect(10, 30, 100, 50); svgGenerator.drawRect(10, 80, 100, 30); I want to have the 2 first rectangles contained in a group, and the 2 other rectangles in an other group svg. How can i do this ? Thanks a lot for your help ! Xavier Monnet ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

