|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.util.ObjectTable
org.jfree.util.StrokeTable
A lookup table for Stroke
objects.
Constructor Summary | |
StrokeTable()
Creates a new stroke table. |
Method Summary | |
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. |
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. |
Methods inherited from class org.jfree.util.ObjectTable |
getColumnCount, getObject, getRowCount, setObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StrokeTable()
Method Detail |
public 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 ObjectTable
o
- the other object.
protected java.lang.Object readSerializedData(java.io.ObjectInputStream stream) throws java.io.OptionalDataException, 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.OptionalDataException
- Primitive data was found in the
stream instead of objects.
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 ObjectTable
stream
- the stream which should write the objecto
- the object that should be serialized
java.io.IOException
- if an IO error occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |