| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.jfree.data.general.AbstractDatasetorg.jfree.data.category.DefaultCategoryDatasetpublic class DefaultCategoryDatasetextends AbstractDatasetimplements CategoryDataset, PublicCloneable, SerializableCategoryDataset interface.
Constructor Summary | |
| |
Method Summary | |
void |
|
void |
|
void |
|
Object |
|
boolean |
|
int |
|
int |
|
Comparable |
|
List |
|
int |
|
int |
|
Comparable |
|
List |
|
Number |
|
Number |
|
int |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject | |
public void addValue(Number value, Comparable rowKey, Comparable columnKey)
Adds a value to the table. Performs the same function as setValue().
- Parameters:
value- the value.rowKey- the row key.columnKey- the column key.
public void addValue(double value, Comparable rowKey, Comparable columnKey)
Adds a value to the table.
- Parameters:
value- the value.rowKey- the row key.columnKey- the column key.
- See Also:
getValue(Comparable,Comparable)
public void clear()
Clears all data from the dataset and sends aDatasetChangeEventto all registered listeners.
public Object clone() throws CloneNotSupportedException
Returns a clone of the dataset.
- 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 (nullpermitted).
- Returns:
- A boolean.
public int getColumnCount()
Returns the number of columns in the table.
- Specified by:
- getColumnCount in interface Values2D
- Returns:
- The column count.
- See Also:
getRowCount()
public int getColumnIndex(Comparable key)
Returns the column index for a given key.
- Specified by:
- getColumnIndex in interface KeyedValues2D
- Parameters:
key- the column key (nullnot permitted).
- Returns:
- The column index.
- See Also:
getColumnKey(int)
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.
- See Also:
getColumnIndex(Comparable)
public List getColumnKeys()
Returns the column keys.
- Specified by:
- getColumnKeys in interface KeyedValues2D
- Returns:
- The keys.
- See Also:
getColumnKey(int)
public int getRowCount()
Returns the number of rows in the table.
- Specified by:
- getRowCount in interface Values2D
- Returns:
- The row count.
- See Also:
getColumnCount()
public int getRowIndex(Comparable key)
Returns the row index for a given key.
- Specified by:
- getRowIndex in interface KeyedValues2D
- Parameters:
key- the row key (nullnot permitted).
- Returns:
- The row index.
- See Also:
getRowKey(int)
public Comparable getRowKey(int row)
Returns the key for the specified row.
- Specified by:
- getRowKey in interface KeyedValues2D
- Parameters:
row- the row index (zero-based).
- Returns:
- The row key.
- See Also:
getRowIndex(Comparable),getRowKeys(),getColumnKey(int)
public List getRowKeys()
Returns the row keys.
- Specified by:
- getRowKeys in interface KeyedValues2D
- Returns:
- The keys.
- See Also:
getRowKey(int)
public Number getValue(Comparable rowKey, Comparable columnKey)
Returns the value for a pair of keys.
- Specified by:
- getValue in interface KeyedValues2D
- Parameters:
rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).
- Returns:
- The value (possibly
null).
public Number getValue(int row, int column)
Returns a value from the table.
- Parameters:
row- the row index (zero-based).column- the column index (zero-based).
- Returns:
- The value (possibly
null).
public void incrementValue(double value, Comparable rowKey, Comparable columnKey)
Adds the specified value to an existing value in the dataset (if the existing value isnull, it is treated as if it were 0.0).
- Parameters:
value- the value.rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).
public void removeColumn(Comparable columnKey)
Removes a column from the dataset and sends aDatasetChangeEventto all registered listeners.
- Parameters:
columnKey- the column key (nullnot permitted).
- See Also:
removeRow(Comparable)
public void removeColumn(int columnIndex)
Removes a column from the dataset and sends aDatasetChangeEventto all registered listeners.
- Parameters:
columnIndex- the column index.
- See Also:
removeRow(int)
public void removeRow(Comparable rowKey)
Removes a row from the dataset and sends aDatasetChangeEventto all registered listeners.
- Parameters:
rowKey- the row key.
- See Also:
removeColumn(Comparable)
public void removeRow(int rowIndex)
Removes a row from the dataset and sends aDatasetChangeEventto all registered listeners.
- Parameters:
rowIndex- the row index.
- See Also:
removeColumn(int)
public void removeValue(Comparable rowKey, Comparable columnKey)
Removes a value from the dataset and sends aDatasetChangeEventto all registered listeners.
- Parameters:
rowKey- the row key.columnKey- the column key.
public void setValue(Number value, Comparable rowKey, Comparable columnKey)
Adds or updates a value in the table and sends aDatasetChangeEventto all registered listeners.
- Parameters:
value- the value (nullpermitted).rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).
- See Also:
getValue(Comparable,Comparable)
public void setValue(double value, Comparable rowKey, Comparable columnKey)
Adds or updates a value in the table and sends aDatasetChangeEventto all registered listeners.
- Parameters:
value- the value.rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).
- See Also:
getValue(Comparable,Comparable)