Larry Ai wrote:
Hi all:
I want to add an additional attribute to the top
level svg tag:
<svg .... viewBox="0 0 452 567" ...>
Here is what I have done:
after g2d is painted
Element svgRoot = g2d.getRoot();
svgRoot.setAtttribute(SVGGraphics2D.SVG_VIEW_BOX_ATTRIBUTE,
"0 0 452 567");
g2d.stram(outWriter, true);
Once you get the root it is cleared from the
g2d. So you are not streaming anything here.
I suggest using something like org.apache.batik.svggen.XmlWriter.
or batik.dom.util.DOMUtilities.writeNode with the root node
you set the attribute on.
This is not working.
Any suggestions?
Thanks!
Larry
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]