List of usage examples for org.jfree.data.category DefaultIntervalCategoryDataset getCategoryIndex
public int getCategoryIndex(Comparable category)
From source file:org.jfree.data.category.DefaultIntervalCategoryDatasetTest.java
/** * Some checks for the getCategoryIndex() method. *//*w ww. j av a 2s . co m*/ @Test public void testGetCategoryIndex() { // check an empty dataset DefaultIntervalCategoryDataset empty = new DefaultIntervalCategoryDataset(new double[0][0], new double[0][0]); assertEquals(-1, empty.getCategoryIndex("ABC")); }