Dear Batik user,
I am trying to do something very simple:
1) Load an existing SVG
2) Display it in a Swing frame
3) Modify it
But, the SVG is displayed without being modified.
Here is what I did:
// Load SVG
parser = XMLResourceDescriptor.getXMLParserClassName();
svgDocumentFactory=new SAXSVGDocumentFactory(parser);
svgDocument = svgDocumentFactory.createSVGDocument(svgFile.toURI().toString());
// Display SVG
svgCanvas = new JSVGCanvas();
svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);
svgCanvas.setSVGDocument(svgDocument);
// Alter SVG
path =(SVGGraphicsElement)
svgDocument.getElementById("path12545");
pathStyle=path.getStyle();
pathStyle.setProperty(CSSConstants.CSS_STROKE_PROPERTY,getColor(i),"important");
What should I do?
Gerald
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]