Example usage for org.jfree.data.xy YIntervalDataItem getX

List of usage examples for org.jfree.data.xy YIntervalDataItem getX

Introduction

In this page you can find the example usage for org.jfree.data.xy YIntervalDataItem getX.

Prototype

public Double getX() 

Source Link

Document

Returns the x-value.

Usage

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

/**
 * Some checks for the constructor./*ww w .  j a va2 s .com*/
 */
@Test
public void testConstructor1() {
    YIntervalDataItem item1 = new YIntervalDataItem(1.0, 2.0, 3.0, 4.0);
    assertEquals(new Double(1.0), item1.getX());
    assertEquals(2.0, item1.getYValue(), EPSILON);
    assertEquals(3.0, item1.getYLowValue(), EPSILON);
    assertEquals(4.0, item1.getYHighValue(), EPSILON);
}