public class ShapeTable extends ObjectTable implements java.io.Serializable
Shape
objects.Constructor and Description |
---|
ShapeTable()
Creates a new shape table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Tests this shape table for equality with another object (typically also a shape table).
|
java.awt.Shape |
getShape(int row,
int column)
Returns the shape object from a particular cell in the table.
|
int |
hashCode()
Returns a hash code value for the object.
|
protected java.lang.Object |
readSerializedData(java.io.ObjectInputStream stream)
Handles the deserialization of a single element of the table.
|
void |
setShape(int row,
int column,
java.awt.Shape shape)
Sets the shape for an item.
|
protected void |
writeSerializedData(java.io.ObjectOutputStream stream,
java.lang.Object o)
Handles the serialization of an single element of this table.
|
clear, ensureCapacity, ensureRowCapacity, getColumnCount, getColumnIncrement, getObject, getRowCount, getRowIncrement, setObject
public java.awt.Shape getShape(int row, int column)
row
- the row index (zero-based).column
- the column index (zero-based).public void setShape(int row, int column, java.awt.Shape shape)
row
- the row index (zero-based).column
- the column index (zero-based).shape
- the shape.public boolean equals(java.lang.Object o)
equals
in class ObjectTable
o
- the other object.public int hashCode()
hashCode
in class ObjectTable
protected void writeSerializedData(java.io.ObjectOutputStream stream, java.lang.Object o) throws java.io.IOException
writeSerializedData
in class ObjectTable
stream
- the stream which should write the objecto
- the object that should be serializedjava.io.IOException
- if an IO error occuredprotected java.lang.Object readSerializedData(java.io.ObjectInputStream stream) throws java.lang.ClassNotFoundException, java.io.IOException
readSerializedData
in class ObjectTable
stream
- the object input stream from which to read the object.java.lang.ClassNotFoundException
- Class of a serialized object cannot be found.java.io.IOException
- Any of the usual Input/Output related exceptions.