|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.AbstractDataset
org.jfree.data.statistics.DefaultMultiValueCategoryDataset
public class DefaultMultiValueCategoryDataset
A category dataset that defines multiple values for each item.
Field Summary | |
---|---|
protected KeyedObjects2D |
data
Storage for the data. |
Constructor Summary | |
---|---|
DefaultMultiValueCategoryDataset()
Creates a new dataset. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jfree.data.general.AbstractDataset |
---|
addChangeListener, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.data.general.Dataset |
---|
addChangeListener, getGroup, removeChangeListener, setGroup |
Field Detail |
---|
protected KeyedObjects2D data
Constructor Detail |
---|
public DefaultMultiValueCategoryDataset()
Method Detail |
---|
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)
getValue
in interface Values2D
row
- the row index.column
- the column index.
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)
equals
in class Object
obj
- the object (null
permitted).
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
CloneNotSupportedException
- if the dataset cannot be cloned.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |