Example usage for org.jfree.data KeyedObjects2D removeObject

List of usage examples for org.jfree.data KeyedObjects2D removeObject

Introduction

In this page you can find the example usage for org.jfree.data KeyedObjects2D removeObject.

Prototype

public void removeObject(Comparable rowKey, Comparable columnKey) 

Source Link

Document

Removes an object from the table by setting it to null.

Usage

From source file:org.jfree.data.KeyedObjects2DTest.java

/**
 * A simple check for the removeValue() method.
 *///www  .  j a v  a2  s.c o  m
@Test
public void testRemoveValue() {
    KeyedObjects2D data = new KeyedObjects2D();
    data.setObject("Obj1", "R1", "C1");
    data.setObject("Obj2", "R2", "C2");
    data.removeObject("R2", "C2");
    assertEquals(1, data.getRowCount());
    assertEquals(1, data.getColumnCount());
    assertEquals("Obj1", data.getObject(0, 0));
}