| java.lang.Object | |
| ↳ | org.jfree.data.KeyedObjects2D |
A data structure that stores zero, one or many objects, where each object is associated with two keys (a 'row' key and a 'column' key).
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance (initially empty).
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds an object to the table.
| |||||||||||
Clears all the data and associated keys.
| |||||||||||
Returns a clone.
| |||||||||||
Tests this object for equality with an arbitrary object.
| |||||||||||
Returns the column count.
| |||||||||||
Returns the column index for a given key, or
-1 if the key
is not recognised. | |||||||||||
Returns the key for a given column.
| |||||||||||
Returns the column keys.
| |||||||||||
Returns the object for the given row and column keys.
| |||||||||||
Returns the object for a given row and column.
| |||||||||||
Returns the row count.
| |||||||||||
Returns the row index for a given key, or
-1 if the key
is not recognised. | |||||||||||
Returns the key for a given row.
| |||||||||||
Returns the row keys.
| |||||||||||
Returns a hashcode for this object.
| |||||||||||
Removes an entire column from the table.
| |||||||||||
Removes an entire column from the table.
| |||||||||||
Removes an object from the table by setting it to
null. | |||||||||||
Removes an entire row from the table.
| |||||||||||
Removes an entire row from the table.
| |||||||||||
Adds or updates an object.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new instance (initially empty).
Adds an object to the table. Performs the same function as setObject().
| object | the object. |
|---|---|
| rowKey | the row key (null not permitted). |
| columnKey | the column key (null not permitted).
|
Clears all the data and associated keys.
Returns a clone.
| CloneNotSupportedException | this class will not throw this exception, but subclasses (if any) might. |
|---|
Tests this object for equality with an arbitrary object.
| obj | the object to test (null permitted). |
|---|
Returns the column index for a given key, or -1 if the key
is not recognised.
| key | the key (null not permitted). |
|---|
Returns the key for a given column.
| column | the column. |
|---|
Returns the object for the given row and column keys.
| rowKey | the row key (null not permitted). |
|---|---|
| columnKey | the column key (null not permitted). |
null).| IllegalArgumentException | if rowKey |
|---|---|
| UnknownKeyException | if rowKey or
columnKey is not recognised.
|
Returns the object for a given row and column.
| row | the row index (in the range 0 to getRowCount() - 1). |
|---|---|
| column | the column index (in the range 0 to getColumnCount() - 1). |
null).Returns the row index for a given key, or -1 if the key
is not recognised.
| key | the key (null not permitted). |
|---|
Returns the key for a given row.
| row | the row index (zero based). |
|---|
Returns a hashcode for this object.
Removes an entire column from the table.
| columnKey | the column key (null not permitted). |
|---|
| UnknownKeyException | if rowKey is not recognised. |
|---|
Removes an entire column from the table.
| columnIndex | the column index. |
|---|
Removes an object from the table by setting it to null. If
all the objects in the specified row and/or column are now
null, the row and/or column is removed from the table.
| rowKey | the row key (null not permitted). |
|---|---|
| columnKey | the column key (null not permitted). |
Removes an entire row from the table.
| rowKey | the row key (null not permitted). |
|---|
| UnknownKeyException | if rowKey is not recognised. |
|---|
Adds or updates an object.
| object | the object. |
|---|---|
| rowKey | the row key (null not permitted). |
| columnKey | the column key (null not permitted).
|