org.pentaho.reporting.libraries.base.util
public class ObjectTable extends Object implements Serializable
Constructor Summary | |
---|---|
ObjectTable()
Creates a new table. | |
ObjectTable(int increment)
Creates a new table.
| |
ObjectTable(int rowIncrement, int colIncrement)
Creates a new table.
|
Method Summary | |
---|---|
void | clear()
Clears the table. |
void | clearRow(int row)
Clears the row by removing the array that stores the row-data. |
protected void | copyColumn(int oldColumn, int newColumn)
Copys the contents of the old column to the new column.
|
protected void | copyRow(int oldRow, int newRow)
Copys the contents of the old row to the new row. |
void | ensureCapacity(int row, int column)
Ensures that there is storage capacity for the specified item.
|
protected void | ensureRowCapacity(int row)
Checks that there is storage capacity for the specified row and resizes
if necessary.
|
boolean | equals(Object o)
Tests this paint table for equality with another object (typically also
an ObjectTable ).
|
int | getColumnCount()
Returns the number of columns in the table.
|
int | getColumnIncrement()
Returns the column size increment.
|
protected Object[][] | getData()
Returns the data-storage as raw-object. |
protected Object | getObject(int row, int column)
Returns the object from a particular cell in the table. |
int | getRowCount()
Returns the number of rows in the table.
|
int | getRowIncrement()
Returns the row size increment.
|
int | hashCode()
Returns a hash code value for the object.
|
protected Object | readSerializedData(ObjectInputStream stream)
Handles the deserialization of a single element of the table.
|
protected void | setData(Object[][] data, int colCount)
Replaces the data in the table with the given two-dimensional array. |
protected void | setObject(int row, int column, Object object)
Sets the object for a cell in the table. |
protected void | writeSerializedData(ObjectOutputStream stream, Object o)
Handles the serialization of an single element of this table.
|
Parameters: increment the row and column size increment.
Parameters: rowIncrement the row size increment. colIncrement the column size increment.
Parameters: row the row to be deleted.
Parameters: oldColumn the index of the old (source) column newColumn the index of the new column
Parameters: oldRow the index of the old row newRow the index of the new row
Parameters: row the row index. column the column index.
Parameters: row the row index.
ObjectTable
).
Parameters: o the other object.
Returns: A boolean.
Returns: The column count.
Returns: the increment.
Returns: the data as raw-object.
Parameters: row the row index (zero-based). column the column index (zero-based).
Returns: The object.
Returns: The row count.
Returns: the increment.
Returns: the hashcode
Parameters: stream the object input stream from which to read the object.
Returns: the deserialized object
Throws: ClassNotFoundException if a class cannot be found. java.io.IOException Any of the usual Input/Output related exceptions.
Parameters: data the array to be used as new data array colCount the column count in the array.
UNKNOWN: AssignmentToCollectionOrArrayFieldFromParameter for performance reasons as this is an internal method
Parameters: row the row index (zero-based). column the column index (zero-based). object the object.
Parameters: stream the stream which should write the object o the object that should be serialized
Throws: java.io.IOException if an IO error occured