Example usage for org.jfree.data.category DefaultIntervalCategoryDataset getRowIndex

List of usage examples for org.jfree.data.category DefaultIntervalCategoryDataset getRowIndex

Introduction

In this page you can find the example usage for org.jfree.data.category DefaultIntervalCategoryDataset getRowIndex.

Prototype

@Override
public int getRowIndex(Comparable rowKey) 

Source Link

Document

Returns a row index.

Usage

From source file:org.jfree.data.category.DefaultIntervalCategoryDatasetTest.java

/**
 * Some checks for the getRowIndex() method.
 *///  ww w .  j  a v a  2 s.co m
@Test
public void testGetRowIndex() {
    // check an empty dataset
    DefaultIntervalCategoryDataset empty = new DefaultIntervalCategoryDataset(new double[0][0],
            new double[0][0]);
    assertEquals(-1, empty.getRowIndex("ABC"));
}