Fayyad, Elias wrote:
Does it make any difference if one used
SVGDOMImplementation.getDOMImplementation(), as opposed to
GenericDOMImplementation.getDOMImplementation()?
For this I don't think so.
Actually, I am using batik 1.6, just downloaded about three weeks ago.
In the forum, I stated that I also tried batik 1.5, but that didn't
do any changes. Do you have any other suggestions? Below is the
method that I use to save the chart as svg file.
Sorry I was wrong the fix for this is only in SVN. You can
either get one of the nightly builds our download the current
development tree from SVN (directions on the Batik home page).
Once you have the source tree you should be able to simply
run: 'build.bat jars' to get the rough equivalent of a binary
release.
// saveChartToSVG(), source from online from JFreeChart forum
public void saveChartToSVG( JFreeChart chart, OutputStream outStream,
int width, int height ) throws Exception
{
if ( chart != null )
{
DOMImplementation domImpl = =
GenericDOMImplementation.getDOMImplementation();
Document document = domImpl.createDocument( null, "svg", null );
SVGGraphics2D svgGenerator = new SVGGraphics2D( document );
chart.draw( svgGenerator, new Rectangle2D.Double( 0, 0, width,
height ),
null );
boolean useCSS = true;
Writer out = new OutputStreamWriter( outStream, "UTF-8" );
svgGenerator.stream( out, useCSS );
}
}
On 8/19/05, Thomas DeWeese <[EMAIL PROTECTED]> wrote:
Hi Lila,
Lila Tran wrote:
Thank you so much for replying. Click the below link for the
output,
it will lead you to the jfreechart forum, someone there has the
exact
same problem as I did. I posted a reply to that thread saying that
I
have the same problem. but you can view the output at this link
http://www.jfree.org/phpBB2/viewtopic.php?p=40152#40152
Ahh, the problem is not that your circle is grey. The problem
is that the blue circle is drawn malformed. This is fixed in
Batik 1.6 I suggest you upgrade.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]