Example usage for org.jfree.data.general IntervalDataItem getValue

List of usage examples for org.jfree.data.general IntervalDataItem getValue

Introduction

In this page you can find the example usage for org.jfree.data.general IntervalDataItem getValue.

Prototype

public Number getValue() 

Source Link

Usage

From source file:org.jfree.data.general.junit.TestIntervalCategoryDataset.java

/**
 * Returns a value from the table.// www.  j a  va 2s. co  m
 *
 * @param row  the row index (zero-based).
 * @param column  the column index (zero-based).
 *
 * @return The value (possibly <code>null</code>).
 *
 * @see #addValue(Number, Comparable, Comparable)
 * @see #removeValue(Comparable, Comparable)
 */
@Override
public Number getValue(int row, int column) {
    IntervalDataItem item = (IntervalDataItem) this.data.getObject(row, column);
    if (item == null) {
        return null;
    }
    return item.getValue();
}

From source file:org.jfree.data.general.junit.TestIntervalCategoryDataset.java

/**
 * Returns the value for a pair of keys.
 *
 * @param rowKey  the row key (<code>null</code> not permitted).
 * @param columnKey  the column key (<code>null</code> not permitted).
 *
 * @return The value (possibly <code>null</code>).
 *
 * @throws UnknownKeyException if either key is not defined in the dataset.
 *
 * @see #addValue(Number, Comparable, Comparable)
 *///w  w w  .  j av  a2 s .c  om
@Override
public Number getValue(Comparable rowKey, Comparable columnKey) {
    IntervalDataItem item = (IntervalDataItem) this.data.getObject(rowKey, columnKey);
    if (item == null) {
        return null;
    }
    return item.getValue();
}