Example usage for org.jfree.data.xy XYIntervalSeries getYHighValue

List of usage examples for org.jfree.data.xy XYIntervalSeries getYHighValue

Introduction

In this page you can find the example usage for org.jfree.data.xy XYIntervalSeries getYHighValue.

Prototype

public double getYHighValue(int index) 

Source Link

Document

Returns the upper bound of the y-interval for the specified item in the series.

Usage

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

/**
 * Returns the end y-value (as a double primitive) for an item within a
 * series.//  w  w w  .  ja  v  a 2 s.c  om
 *
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 *
 * @return The value.
 */
@Override
public double getEndYValue(int series, int item) {
    XYIntervalSeries s = (XYIntervalSeries) this.data.get(series);
    return s.getYHighValue(item);
}

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

/**
 * Some checks for the new accessor methods added in 1.0.5.
 *///from  ww  w  . j a  v  a 2 s.com
@Test
public void testValues() {
    XYIntervalSeries s1 = new XYIntervalSeries("S1");
    s1.add(2.0, 1.0, 3.0, 5.0, 4.0, 6.0);
    assertEquals(2.0, s1.getX(0).doubleValue(), EPSILON);
    assertEquals(1.0, s1.getXLowValue(0), EPSILON);
    assertEquals(3.0, s1.getXHighValue(0), EPSILON);
    assertEquals(5.0, s1.getYValue(0), EPSILON);
    assertEquals(4.0, s1.getYLowValue(0), EPSILON);
    assertEquals(6.0, s1.getYHighValue(0), EPSILON);
}