From: Nathaniel G. A. <nat...@ya...> - 2003-11-10 13:46:28
|
what are you sending as your data? --- Bent Are Melsom <me...@f1...> wrote: > Hi > > I am trying to export a chart to a JPEG image using the JPEGEncoder13 > class. This does not work, all I get is an IndexOutOfBoundsException. The > code is > > File file = new File("c:\\file.jpg"); > OutputStream out = new FileOutputStream(file); > JPEGEncoder13.encode(axisChart,0.5f,out); > > The exception is: > > java.lang.ArrayIndexOutOfBoundsException: -1 > int java.awt.font.LineBreakMeasurer.nextOffset(float, int, > boolean) > LineBreakMeasurer.java:334 > java.awt.font.TextLayout > java.awt.font.LineBreakMeasurer.nextLayout(float, int, boolean) > LineBreakMeasurer.java:408 > java.awt.font.TextLayout > java.awt.font.LineBreakMeasurer.nextLayout(float) > LineBreakMeasurer.java:382 > float org.jCharts.Chart.renderChartTitle(java.lang.String, > java.awt.font.FontRenderContext) > void org.jCharts.axisChart.AxisChart.renderChart() > void org.jCharts.Chart.render() > java.awt.image.BufferedImage > org.jCharts.encoders.BinaryEncoderUtil.render(org.jCharts.Chart) > void org.jCharts.encoders.JPEGEncoder13.encode(org.jCharts.Chart, > float, java.io.OutputStream) > void mypackage2.TestClass.generateLineChart() > TestClass.java:49 > void mypackage2.TestClass.main(java.lang.String[]) > TestClass.java:62 > > The chart is the coded using the example from the user documentation > of linechart from User's Guide 0.3.0 of jCharts 0.7. > > Does anybody have a hint? > > regards > Bent Are Melsom > --------------------------------------- > Bent Are Melsom > mobile: 950 22 874 > e-mail: me...@f1... > --------------------------------------- > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |