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

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

Introduction

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

Prototype

public double getXLowValue(int index) 

Source Link

Document

Returns the lower bound of the x-interval for the specified item.

Usage

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

/**
 * A simple check for getXLowValue().//from ww  w. java 2 s  . co  m
 */
@Test
public void testGetXLowValue() {
    XIntervalSeries s1 = new XIntervalSeries("S1");
    s1.add(1.0, 2.0, 3.0, 4.0);
    assertEquals(2.0, s1.getXLowValue(0), EPSILON);
    s1.add(2.0, 1.0, 4.0, 2.5);
    assertEquals(1.0, s1.getXLowValue(1), EPSILON);
}

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

/**
 * Returns the start x-value (as a double primitive) for an item within a
 * series.//from   w ww.  ja va 2 s  .  co  m
 *
 * @param series  the series index (zero-based).
 * @param item  the item index (zero-based).
 *
 * @return The value.
 */
@Override
public double getStartXValue(int series, int item) {
    XIntervalSeries s = (XIntervalSeries) this.data.get(series);
    return s.getXLowValue(item);
}