Example usage for org.jfree.data.xy XIntervalDataItem getXLowValue

List of usage examples for org.jfree.data.xy XIntervalDataItem getXLowValue

Introduction

In this page you can find the example usage for org.jfree.data.xy XIntervalDataItem getXLowValue.

Prototype

public double getXLowValue() 

Source Link

Document

Returns the lower bound of the x-interval.

Usage

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

/**
 * Some checks for the constructor.//from   ww w . j a  v  a 2s  .com
 */
@Test
public void testConstructor1() {
    XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);
    assertEquals(new Double(1.0), item1.getX());
    assertEquals(2.0, item1.getXLowValue(), EPSILON);
    assertEquals(3.0, item1.getXHighValue(), EPSILON);
    assertEquals(4.0, item1.getYValue(), EPSILON);
}

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

/**
 * Returns the start x-value for an item within a series.
 *
 * @param series  the series index./*from  w ww .  j  a  va  2s . com*/
 * @param item  the item index.
 *
 * @return The x-value.
 */
@Override
public Number getStartX(int series, int item) {
    XIntervalSeries s = (XIntervalSeries) this.data.get(series);
    XIntervalDataItem di = (XIntervalDataItem) s.getDataItem(item);
    return new Double(di.getXLowValue());
}