Example usage for org.jfree.data.xy DefaultIntervalXYDataset getStartXValue

List of usage examples for org.jfree.data.xy DefaultIntervalXYDataset getStartXValue

Introduction

In this page you can find the example usage for org.jfree.data.xy DefaultIntervalXYDataset getStartXValue.

Prototype

@Override
public double getStartXValue(int series, int item) 

Source Link

Document

Returns the starting x-value for an item within a series.

Usage

From source file:org.jfree.data.xy.DefaultIntervalXYDatasetTest.java

/**
 * Some checks for the getStartXValue() method.
 *///  w  w  w  .java2 s .  co  m
@Test
public void testGetStartXValue() {
    DefaultIntervalXYDataset d = createSampleDataset1();
    assertEquals(0.9, d.getStartXValue(0, 0), EPSILON);
    assertEquals(1.9, d.getStartXValue(0, 1), EPSILON);
    assertEquals(2.9, d.getStartXValue(0, 2), EPSILON);
    assertEquals(10.9, d.getStartXValue(1, 0), EPSILON);
    assertEquals(11.9, d.getStartXValue(1, 1), EPSILON);
    assertEquals(12.9, d.getStartXValue(1, 2), EPSILON);
}

From source file:org.jfree.data.xy.junit.DefaultIntervalXYDatasetTest.java

/**
 * Some checks for the getStartXValue() method.
 *//*from w  ww. j  a  va  2 s.  c o  m*/
public void testGetStartXValue() {
    DefaultIntervalXYDataset d = createSampleDataset1();
    assertEquals(0.9, d.getStartXValue(0, 0), EPSILON);
    assertEquals(1.9, d.getStartXValue(0, 1), EPSILON);
    assertEquals(2.9, d.getStartXValue(0, 2), EPSILON);
    assertEquals(10.9, d.getStartXValue(1, 0), EPSILON);
    assertEquals(11.9, d.getStartXValue(1, 1), EPSILON);
    assertEquals(12.9, d.getStartXValue(1, 2), EPSILON);
}