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.
|
private java.lang.Number |
maximumRangeValue
The maximum range value.
|
private java.lang.Number |
minimumRangeValue
The minimum range value.
|
private Range |
rangeBounds
The range of values.
|
| Constructor and Description |
|---|
DefaultMultiValueCategoryDataset()
Creates a new dataset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.List values,
java.lang.Comparable rowKey,
java.lang.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. |
java.lang.Object |
clone()
Returns a clone of this instance.
|
boolean |
equals(java.lang.Object obj)
Tests this dataset for equality with an arbitrary object.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
int |
getColumnIndex(java.lang.Comparable key)
Returns the column index for a given key.
|
java.lang.Comparable |
getColumnKey(int column)
Returns a column key.
|
java.util.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(java.lang.Comparable key)
Returns the row index for a given key.
|
java.lang.Comparable |
getRowKey(int row)
Returns a row key.
|
java.util.List |
getRowKeys()
Returns the row keys.
|
java.lang.Number |
getValue(java.lang.Comparable row,
java.lang.Comparable column)
Returns the average value for the specified item.
|
java.lang.Number |
getValue(int row,
int column)
Returns the average value for the specified item.
|
java.util.List |
getValues(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns a list (possibly empty) of the values for the specified item.
|
java.util.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
private java.lang.Number minimumRangeValue
private java.lang.Number maximumRangeValue
private Range rangeBounds
public DefaultMultiValueCategoryDataset()
public void add(java.util.List values,
java.lang.Comparable rowKey,
java.lang.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 java.util.List getValues(int row,
int column)
getValues in interface MultiValueCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).public java.util.List getValues(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
getValues in interface MultiValueCategoryDatasetrowKey - the row key (null not permitted).columnKey - the column key (null not permitted).public java.lang.Number getValue(java.lang.Comparable row,
java.lang.Comparable column)
getValue in interface KeyedValues2Drow - the row key.column - the column key.public java.lang.Number getValue(int row,
int column)
public int getColumnIndex(java.lang.Comparable key)
getColumnIndex in interface KeyedValues2Dkey - the column key.public java.lang.Comparable getColumnKey(int column)
getColumnKey in interface KeyedValues2Dcolumn - the column index (zero-based).public java.util.List getColumnKeys()
getColumnKeys in interface KeyedValues2Dpublic int getRowIndex(java.lang.Comparable key)
getRowIndex in interface KeyedValues2Dkey - the row key.public java.lang.Comparable getRowKey(int row)
getRowKey in interface KeyedValues2Drow - the row index (zero-based).public java.util.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(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDatasetjava.lang.CloneNotSupportedException - if the dataset cannot be cloned.