public class DefaultMultiValueCategoryDataset extends AbstractDataset implements MultiValueCategoryDataset, RangeInfo, org.jfree.util.PublicCloneable
| Modifier and Type | Field and Description |
|---|---|
protected KeyedObjects2D |
data
Storage for the data.
|
| Constructor and Description |
|---|
DefaultMultiValueCategoryDataset()
Creates a new dataset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(List values,
Comparable rowKey,
Comparable columnKey)
Adds a list of values to the dataset (
null and Double.NaN
items are automatically removed) and sends a DatasetChangeEvent
to all registered listeners. |
Object |
clone()
Returns a clone of this instance.
|
boolean |
equals(Object obj)
Tests this dataset for equality with an arbitrary object.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
int |
getColumnIndex(Comparable key)
Returns the column index for a given key.
|
Comparable |
getColumnKey(int column)
Returns a column key.
|
List |
getColumnKeys()
Returns the column keys.
|
Range |
getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range.
|
double |
getRangeLowerBound(boolean includeInterval)
Returns the minimum y-value in the dataset.
|
double |
getRangeUpperBound(boolean includeInterval)
Returns the maximum y-value in the dataset.
|
int |
getRowCount()
Returns the number of rows in the table.
|
int |
getRowIndex(Comparable key)
Returns the row index for a given key.
|
Comparable |
getRowKey(int row)
Returns a row key.
|
List |
getRowKeys()
Returns the row keys.
|
Number |
getValue(Comparable row,
Comparable column)
Returns the average value for the specified item.
|
Number |
getValue(int row,
int column)
Returns the average value for the specified item.
|
List |
getValues(Comparable rowKey,
Comparable columnKey)
Returns a list (possibly empty) of the values for the specified item.
|
List |
getValues(int row,
int column)
Returns a list (possibly empty) of the values for the specified item.
|
addChangeListener, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, getGroup, removeChangeListener, setGroupprotected KeyedObjects2D data
public DefaultMultiValueCategoryDataset()
public void add(List values, Comparable rowKey, Comparable columnKey)
null and Double.NaN
items are automatically removed) and sends a DatasetChangeEvent
to all registered listeners.values - a list of values (null not permitted).rowKey - the row key (null not permitted).columnKey - the column key (null not permitted).public List getValues(int row, int column)
getValues in interface MultiValueCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).public List getValues(Comparable rowKey, Comparable columnKey)
getValues in interface MultiValueCategoryDatasetrowKey - the row key (null not permitted).columnKey - the column key (null not permitted).public Number getValue(Comparable row, Comparable column)
getValue in interface KeyedValues2Drow - the row key.column - the column key.public Number getValue(int row, int column)
public int getColumnIndex(Comparable key)
getColumnIndex in interface KeyedValues2Dkey - the column key.public Comparable getColumnKey(int column)
getColumnKey in interface KeyedValues2Dcolumn - the column index (zero-based).public List getColumnKeys()
getColumnKeys in interface KeyedValues2Dpublic int getRowIndex(Comparable key)
getRowIndex in interface KeyedValues2Dkey - the row key.public Comparable getRowKey(int row)
getRowKey in interface KeyedValues2Drow - the row index (zero-based).public List getRowKeys()
getRowKeys in interface KeyedValues2Dpublic int getRowCount()
getRowCount in interface Values2Dpublic int getColumnCount()
getColumnCount in interface Values2Dpublic double getRangeLowerBound(boolean includeInterval)
getRangeLowerBound in interface RangeInfoincludeInterval - a flag that determines whether or not the
y-interval is taken into account.public double getRangeUpperBound(boolean includeInterval)
getRangeUpperBound in interface RangeInfoincludeInterval - a flag that determines whether or not the
y-interval is taken into account.public Range getRangeBounds(boolean includeInterval)
getRangeBounds in interface RangeInfoincludeInterval - a flag that determines whether or not the
y-interval is taken into account.public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDatasetCloneNotSupportedException - if the dataset cannot be cloned.Copyright © 2001–2014 JFree.org. All rights reserved.