List of usage examples for org.jfree.data.xy DefaultIntervalXYDataset getXValue
@Override public double getXValue(int series, int item)
From source file:org.jfree.data.xy.DefaultIntervalXYDatasetTest.java
/** * Some checks for the getXValue() method. */// ww w . j a v a 2s. c om @Test public void testGetXValue() { DefaultIntervalXYDataset d = createSampleDataset1(); assertEquals(1.0, d.getXValue(0, 0), EPSILON); assertEquals(2.0, d.getXValue(0, 1), EPSILON); assertEquals(3.0, d.getXValue(0, 2), EPSILON); assertEquals(11.0, d.getXValue(1, 0), EPSILON); assertEquals(12.0, d.getXValue(1, 1), EPSILON); assertEquals(13.0, d.getXValue(1, 2), EPSILON); }
From source file:org.jfree.data.xy.junit.DefaultIntervalXYDatasetTest.java
/** * Some checks for the getXValue() method. *//*from w ww . j a v a2s. c o m*/ public void testGetXValue() { DefaultIntervalXYDataset d = createSampleDataset1(); assertEquals(1.0, d.getXValue(0, 0), EPSILON); assertEquals(2.0, d.getXValue(0, 1), EPSILON); assertEquals(3.0, d.getXValue(0, 2), EPSILON); assertEquals(11.0, d.getXValue(1, 0), EPSILON); assertEquals(12.0, d.getXValue(1, 1), EPSILON); assertEquals(13.0, d.getXValue(1, 2), EPSILON); }