Search in sources :

Example 6 with DefaultXYZDataset

use of org.jfree.data.xy.DefaultXYZDataset in project SIMVA-SoS by SESoS.

the class XYBlockRendererTest method testBug1766646A.

/**
 * A simple test for bug 1766646.
 */
@Test
public void testBug1766646A() {
    XYBlockRenderer r = new XYBlockRenderer();
    Range range = r.findDomainBounds(null);
    assertTrue(range == null);
    DefaultXYZDataset emptyDataset = new DefaultXYZDataset();
    range = r.findDomainBounds(emptyDataset);
    assertTrue(range == null);
}
Also used : DefaultXYZDataset(org.jfree.data.xy.DefaultXYZDataset) Range(org.jfree.data.Range) Test(org.junit.Test)

Aggregations

DefaultXYZDataset (org.jfree.data.xy.DefaultXYZDataset)6 Range (org.jfree.data.Range)3 Test (org.junit.Test)3 JFreeChart (org.jfree.chart.JFreeChart)2 XYPlot (org.jfree.chart.plot.XYPlot)2 Paint (java.awt.Paint)1 List (java.util.List)1 LegendItem (org.jfree.chart.LegendItem)1 NumberAxis (org.jfree.chart.axis.NumberAxis)1 StandardXYZToolTipGenerator (org.jfree.chart.labels.StandardXYZToolTipGenerator)1 XYItemRenderer (org.jfree.chart.renderer.xy.XYItemRenderer)1 XYZDataset (org.jfree.data.xy.XYZDataset)1 ValueAggregator (org.talend.dataprofiler.service.utils.ValueAggregator)1