Hi,
I am using Batik 1.7 for generating SVG images.(Converting jfreecharts
to SVG images). I want to set the stroke miterlimit value to 1 instead of
10(which is default). Please do let me know how to do this?
The following is the code I use to convert jfreechart chart to SVG image.
Please help me with this as soon as possible.
DOMImplementation dom = GenericDOMImplementation.getDOMImplementation();
Document document =
dom.createDocument(SVGDOMImplementation.SVG_NAMESPACE_URI, "svg", null);
SVGGeneratorContext ctx =
SVGGeneratorContext.createDefault(document);
ctx.setEmbeddedFontsOn(false);
boolean textAsShapes = false;
SVGGraphics2D g2 = new SVGGraphics2D(ctx, textAsShapes);
g2.setSVGCanvasSize(new java.awt.Dimension(height,width));
// tell JFreeChart to draw itself into the SVG
chart.draw(g2, new Rectangle(0, 0, height,width), null);
// Write svg file
OutputStream outputStream = new FileOutputStream(svgFileName);
Writer out = new OutputStreamWriter(outputStream, "UTF-8");
g2.stream(out, true);
outputStream.flush();
outputStream.close();
--
View this message in context:
http://www.nabble.com/How-to-set-Stroke-Miter-Limit-tp25219948p25219948.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]