org.jfree.data
public class KeyedObjects2D extends Object implements Cloneable, Serializable
| Constructor Summary | |
|---|---|
| KeyedObjects2D()
Creates a new instance (initially empty). | |
| Method Summary | |
|---|---|
| void | addObject(Object object, Comparable rowKey, Comparable columnKey)
Adds an object to the table. |
| Object | clone()
Returns a clone.
|
| boolean | equals(Object obj)
Tests this object for equality with an arbitrary object.
|
| int | getColumnCount()
Returns the column count.
|
| int | getColumnIndex(Comparable key)
Returns the column index for a given key.
|
| Comparable | getColumnKey(int column)
Returns the key for a given column.
|
| List | getColumnKeys()
Returns the column keys.
|
| Object | getObject(int row, int column)
Returns the object for a given row and column.
|
| Object | getObject(Comparable rowKey, Comparable columnKey)
Returns the object for the given row and column keys.
|
| int | getRowCount()
Returns the row count.
|
| int | getRowIndex(Comparable key)
Returns the row index for a given key.
|
| Comparable | getRowKey(int row)
Returns the key for a given row.
|
| List | getRowKeys()
Returns the row keys.
|
| int | hashCode()
Returns a hashcode for this object.
|
| void | removeColumn(int columnIndex)
Removes a column.
|
| void | removeColumn(Comparable columnKey)
Removes a column.
|
| void | removeObject(Comparable rowKey, Comparable columnKey)
Removes an object.
|
| void | removeRow(int rowIndex)
Removes a row.
|
| void | removeRow(Comparable rowKey)
Removes a row.
|
| void | setObject(Object object, Comparable rowKey, Comparable columnKey)
Adds or updates an object.
|
Parameters: object the object. rowKey the row key. columnKey the column key.
Returns: A clone.
Throws: CloneNotSupportedException this class will not throw this exception, but subclasses (if any) might.
Parameters: obj the object to test (null permitted).
Returns: A boolean.
Returns: The column count.
Parameters: key the key.
Returns: The column index.
Parameters: column the column.
Returns: The key.
Returns: The column keys (never null).
Parameters: row the row index. column the column index.
Returns: The object.
Parameters: rowKey the row key. columnKey the column key.
Returns: The object.
Returns: The row count.
Parameters: key the key.
Returns: The row index.
Parameters: row the row index (zero based).
Returns: The row index.
Returns: The row keys (never null).
Returns: A hashcode.
Parameters: columnIndex the column index.
Parameters: columnKey the column key.
Parameters: rowKey the row key. columnKey the column key.
Parameters: rowIndex the row index.
Parameters: rowKey the row key.
Parameters: object the object. rowKey the row key. columnKey the column key.