Search found 3 matches
- Thu Mar 22, 2007 12:39 pm
- Forum: JFreeChart
- Topic: Smoothed Line & Anti-aliasing
- Replies: 6
- Views: 12363
Thanks a lot!
Thanks a lot, Weihang. I've used your class and works perfectly. I have remade your example in order to make easier to use it. Just copy the class XYSmoothLineAndShapeRenderer and once you have the XYPlot, use the code: XYPlot xyplot = jfreechart.getXYPlot(); . . . . xyplot.setRenderer(new XYSmoothL...
- Wed Mar 21, 2007 8:17 pm
- Forum: JFreeChart
- Topic: Smoothed Line & Anti-aliasing
- Replies: 6
- Views: 12363
antialiasing
I tink that is fou have 200 points in a 400 pixel chart you don't need to smooth the line! If you do, the bezier curves are about a few pixels long, so make this strange effect. Another thing is the way you calculate the control points. I've posted the class I use, that makes a new dataset instead o...
- Wed Mar 21, 2007 8:06 pm
- Forum: JFreeChart
- Topic: Smooth line class
- Replies: 0
- Views: 3359
Smooth line class
I've seen that many people asks for a method to draw smooth lines. I've done a class that converts the datasets to datasets following bezier lines between the given points. It's like the method used in PEAR Image_Graph in PHP. The class is the following: import java.awt.geom.*; import org.jfree.data...