Example usage for org.jfree.data.pie PieDatasetChangeType REMOVE

List of usage examples for org.jfree.data.pie PieDatasetChangeType REMOVE

Introduction

In this page you can find the example usage for org.jfree.data.pie PieDatasetChangeType REMOVE.

Prototype

PieDatasetChangeType REMOVE

To view the source code for org.jfree.data.pie PieDatasetChangeType REMOVE.

Click Source Link

Document

Represents the removal of one or more data items in a contiguous range.

Usage

From source file:org.jfree.data.pie.DefaultPieDataset.java

/**
 * Removes an item from the dataset and sends a {@link DatasetChangeEvent}
 * to all registered listeners./*from   w w  w .  j a  v  a  2  s . c om*/
 *
 * @param key  the key (<code>null</code> not permitted).
 *
 * @throws IllegalArgumentException if <code>key</code> is
 *     <code>null</code>.
 */
public void remove(Comparable key) {
    int i = getIndex(key);
    this.data.removeValue(key);
    PieDatasetChangeType ct = PieDatasetChangeType.REMOVE;
    fireDatasetChanged(new PieDatasetChangeInfo(ct, i, i));
}