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

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

Introduction

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

Prototype

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

Source Link

Document

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

Usage

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

/**
 * Some checks for the getEndXValue() method.
 *///from  www. ja v  a 2 s. com
@Test
public void testGetEndXValue() {
    DefaultIntervalXYDataset d = createSampleDataset1();
    assertEquals(1.1, d.getEndXValue(0, 0), EPSILON);
    assertEquals(2.1, d.getEndXValue(0, 1), EPSILON);
    assertEquals(3.1, d.getEndXValue(0, 2), EPSILON);
    assertEquals(11.1, d.getEndXValue(1, 0), EPSILON);
    assertEquals(12.1, d.getEndXValue(1, 1), EPSILON);
    assertEquals(13.1, d.getEndXValue(1, 2), EPSILON);
}

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

/**
 * Some checks for the getEndXValue() method.
 *///from   ww w .ja  v  a  2 s  .  c o  m
public void testGetEndXValue() {
    DefaultIntervalXYDataset d = createSampleDataset1();
    assertEquals(1.1, d.getEndXValue(0, 0), EPSILON);
    assertEquals(2.1, d.getEndXValue(0, 1), EPSILON);
    assertEquals(3.1, d.getEndXValue(0, 2), EPSILON);
    assertEquals(11.1, d.getEndXValue(1, 0), EPSILON);
    assertEquals(12.1, d.getEndXValue(1, 1), EPSILON);
    assertEquals(13.1, d.getEndXValue(1, 2), EPSILON);
}