public class StrokeTable extends ObjectTable implements java.io.Serializable
Stroke objects.| Constructor and Description |
|---|
StrokeTable()
Creates a new stroke table.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Tests this stroke table for equality with another object (typically also a stroke table).
|
java.awt.Stroke |
getStroke(int row,
int column)
Returns the stroke 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 |
setStroke(int row,
int column,
java.awt.Stroke stroke)
Sets the stroke 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, setObjectpublic java.awt.Stroke getStroke(int row,
int column)
row - the row index (zero-based).column - the column index (zero-based).public void setStroke(int row,
int column,
java.awt.Stroke stroke)
row - the row index (zero-based).column - the column index (zero-based).stroke - the stroke.public boolean equals(java.lang.Object o)
equals in class ObjectTableo - the other object.public int hashCode()
hashCode in class ObjectTableprotected java.lang.Object readSerializedData(java.io.ObjectInputStream stream)
throws java.lang.ClassNotFoundException,
java.io.IOException
readSerializedData in class ObjectTablestream - 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.protected void writeSerializedData(java.io.ObjectOutputStream stream,
java.lang.Object o)
throws java.io.IOException
writeSerializedData in class ObjectTablestream - the stream which should write the objecto - the object that should be serializedjava.io.IOException - if an IO error occured