The new SamplingXYLineRenderer tends to skip the intervalPath (the vertical line between the minimum and maximum y for a range of visually identical x values) if the dataset contains Double.NaN values (see thread http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=27801\). The patch adresses this. The SamplingXYLineRenderer and a XYLineAndShapeRenderer now produce identical lines (checked with the provided test program). The missing legend shape in the LegendItem was also added.
Thanks for the patch. I've just committed a fix for the legend item and will now take a look at your fix for the rendering (a demo program I have created is showing an additional bug, so I'll try to squash that as well).
New patch that fixes the following additional issues:
- intervalPath not reset if a new series is started
- last interval not drawn if it contains the last data item