Example usage for org.jfree.util BooleanList setBoolean

List of usage examples for org.jfree.util BooleanList setBoolean

Introduction

In this page you can find the example usage for org.jfree.util BooleanList setBoolean.

Prototype

public void setBoolean(final int index, final Boolean b) 

Source Link

Document

Sets the value for an item in the list.

Usage

From source file:edu.ucla.stat.SOCR.motionchart.MotionBubbleRenderer.java

/**
 * Sets the item to be selected./*from w  ww .java  2 s . c om*/
 *
 * @param series    the series index (zero-based).
 * @param item      the item index (zero-based).
 * @param selected  <code>true</code> if the item should be selected. <code>false</code> otherwise.
 */
public void setSelectedItem(int series, int item, boolean selected) {
    BooleanList list = (BooleanList) selectedItems.get(series);
    if (list == null) {
        list = new BooleanList();
        selectedItems.set(series, list);
    }

    list.setBoolean(item, selected);
}