Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.statistics.DefaultMultiValueCategoryDataset
public class DefaultMultiValueCategoryDataset
extends AbstractDataset
implements MultiValueCategoryDataset, RangeInfo, PublicCloneable
Field Summary | |
protected KeyedObjects2D |
|
Constructor Summary | |
|
Method Summary | |
void |
|
Object |
|
boolean |
|
int |
|
int |
|
Comparable |
|
List |
|
Range |
|
double |
|
double |
|
int |
|
int |
|
Comparable |
|
List |
|
Number |
|
Number |
|
List |
|
List |
|
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener , clone , fireDatasetChanged , getGroup , hasListener , notifyListeners , removeChangeListener , setGroup , validateObject |
public 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 aDatasetChangeEvent
to all registered listeners.
- Parameters:
values
- a list of values (null
not permitted).rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- A clone.
public boolean equals(Object obj)
Tests this dataset for equality with an arbitrary object.
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public int getColumnCount()
Returns the number of columns in the table.
- Specified by:
- getColumnCount in interface Values2D
- Returns:
- The column count.
public int getColumnIndex(Comparable key)
Returns the column index for a given key.
- Specified by:
- getColumnIndex in interface KeyedValues2D
- Parameters:
key
- the column key.
- Returns:
- The column index.
public Comparable getColumnKey(int column)
Returns a column key.
- Specified by:
- getColumnKey in interface KeyedValues2D
- Parameters:
column
- the column index (zero-based).
- Returns:
- The column key.
public List getColumnKeys()
Returns the column keys.
- Specified by:
- getColumnKeys in interface KeyedValues2D
- Returns:
- The keys.
public Range getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range.
- Specified by:
- getRangeBounds in interface RangeInfo
- Parameters:
includeInterval
- a flag that determines whether or not the y-interval is taken into account.
- Returns:
- The range.
public double getRangeLowerBound(boolean includeInterval)
Returns the minimum y-value in the dataset.
- Specified by:
- getRangeLowerBound in interface RangeInfo
- Parameters:
includeInterval
- a flag that determines whether or not the y-interval is taken into account.
- Returns:
- The minimum value.
public double getRangeUpperBound(boolean includeInterval)
Returns the maximum y-value in the dataset.
- Specified by:
- getRangeUpperBound in interface RangeInfo
- Parameters:
includeInterval
- a flag that determines whether or not the y-interval is taken into account.
- Returns:
- The maximum value.
public int getRowCount()
Returns the number of rows in the table.
- Specified by:
- getRowCount in interface Values2D
- Returns:
- The row count.
public int getRowIndex(Comparable key)
Returns the row index for a given key.
- Specified by:
- getRowIndex in interface KeyedValues2D
- Parameters:
key
- the row key.
- Returns:
- The row index.
public Comparable getRowKey(int row)
Returns a row key.
- Specified by:
- getRowKey in interface KeyedValues2D
- Parameters:
row
- the row index (zero-based).
- Returns:
- The row key.
public List getRowKeys()
Returns the row keys.
- Specified by:
- getRowKeys in interface KeyedValues2D
- Returns:
- The keys.
public Number getValue(Comparable row, Comparable column)
Returns the average value for the specified item.
- Specified by:
- getValue in interface KeyedValues2D
- Parameters:
row
- the row key.column
- the column key.
- Returns:
- The average value.
public Number getValue(int row, int column)
Returns the average value for the specified item.
- Parameters:
row
- the row index.column
- the column index.
- Returns:
- The average value.
public List getValues(Comparable rowKey, Comparable columnKey)
Returns a list (possibly empty) of the values for the specified item. The returned list should be unmodifiable.
- Specified by:
- getValues in interface MultiValueCategoryDataset
- Parameters:
rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).
- Returns:
- The list of values.
public List getValues(int row, int column)
Returns a list (possibly empty) of the values for the specified item. The returned list should be unmodifiable.
- Specified by:
- getValues in interface MultiValueCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The list of values.