Example usage for org.jfree.data.gantt TaskSeriesCollection getColumnIndex

List of usage examples for org.jfree.data.gantt TaskSeriesCollection getColumnIndex

Introduction

In this page you can find the example usage for org.jfree.data.gantt TaskSeriesCollection getColumnIndex.

Prototype

@Override
public int getColumnIndex(Comparable columnKey) 

Source Link

Document

Returns the column index for a column key.

Usage

From source file:org.jfree.data.gantt.TaskSeriesCollectionTest.java

/**
 * Some tests for the getColumnIndex() method.
 *//*from www. j a  v  a  2  s  . com*/
@Test
public void testGetColumnIndex() {
    TaskSeriesCollection c = createCollection1();
    assertEquals(0, c.getColumnIndex("Task 1"));
    assertEquals(1, c.getColumnIndex("Task 2"));
    assertEquals(2, c.getColumnIndex("Task 3"));
}