Example usage for org.jfree.util BooleanList getBoolean

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

Introduction

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

Prototype

public Boolean getBoolean(final int index) 

Source Link

Document

Returns a Boolean from the list.

Usage

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

/**
 * Determines whether or not the item in the series is
 * selected./*from   w ww.  j  a  va 2  s.  c om*/
 *
 * @param series    the series index (zero-based).
 * @param item      the item index (zero-based).
 * @return          <code>true</code> if the item in the series is selected. <code>false</code> otherwise.
 */
public boolean isSelectedItem(int series, int item) {
    BooleanList list = (BooleanList) selectedItems.get(series);
    return list != null && list.getBoolean(item) != null && list.getBoolean(item);
}