Example usage for org.jfree.data.category SlidingCategoryDataset getRowCount

List of usage examples for org.jfree.data.category SlidingCategoryDataset getRowCount

Introduction

In this page you can find the example usage for org.jfree.data.category SlidingCategoryDataset getRowCount.

Prototype

@Override
public int getRowCount() 

Source Link

Document

Returns the number of rows in the table.

Usage

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

/**
 * Some checks for the getRowCount() method.
 *///from  ww  w .j av a 2s  .c  o  m
@Test
public void testGetRowCount() {
    DefaultCategoryDataset underlying = new DefaultCategoryDataset();
    SlidingCategoryDataset dataset = new SlidingCategoryDataset(underlying, 10, 5);
    assertEquals(0, dataset.getRowCount());
    underlying.addValue(1.0, "R1", "C1");
    assertEquals(1, dataset.getRowCount());

    underlying.clear();
    assertEquals(0, dataset.getRowCount());
}