- public static Element renderSVGNode(IG2DNode node) {
-
- // Get a DOMImplementation.
- DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation();
-
- // Create an instance of org.w3c.dom.Document.
- String svgNS = "http://www.w3.org/2000/svg";
- Document document = domImpl.createDocument(svgNS, "svg", null);
-
- SVGGeneratorContext ctx = SVGGeneratorContext.createDefault(document);
- ctx.setComment(null);
-
- // Create an instance of the SVG Generator.
- SVGGraphics2D svgGenerator = new Generator(ctx, false);