public class DefaultMultiValueCategoryDataset extends AbstractDataset implements MultiValueCategoryDataset, RangeInfo, org.jfree.util.PublicCloneable
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, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
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 MultiValueCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).public List getValues(Comparable rowKey, Comparable columnKey)
getValues
in interface MultiValueCategoryDataset
rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).public Number getValue(Comparable row, Comparable column)
getValue
in interface KeyedValues2D
row
- the row key.column
- the column key.public Number getValue(int row, int column)
public int getColumnIndex(Comparable key)
getColumnIndex
in interface KeyedValues2D
key
- the column key.public Comparable getColumnKey(int column)
getColumnKey
in interface KeyedValues2D
column
- the column index (zero-based).public List getColumnKeys()
getColumnKeys
in interface KeyedValues2D
public int getRowIndex(Comparable key)
getRowIndex
in interface KeyedValues2D
key
- the row key.public Comparable getRowKey(int row)
getRowKey
in interface KeyedValues2D
row
- the row index (zero-based).public List getRowKeys()
getRowKeys
in interface KeyedValues2D
public int getRowCount()
getRowCount
in interface Values2D
public int getColumnCount()
getColumnCount
in interface Values2D
public double getRangeLowerBound(boolean includeInterval)
getRangeLowerBound
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.public double getRangeUpperBound(boolean includeInterval)
getRangeUpperBound
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.public Range getRangeBounds(boolean includeInterval)
getRangeBounds
in interface RangeInfo
includeInterval
- 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.PublicCloneable
clone
in class AbstractDataset
CloneNotSupportedException
- if the dataset cannot be cloned.Jas4pp 1.5 © Java Analysis Studio for Particle Physics