public class PaintList extends AbstractObjectList
Paint objects.DEFAULT_INITIAL_CAPACITY| Constructor and Description |
|---|
PaintList()
Creates a new list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests the list for equality with another object (typically also a list).
|
java.awt.Paint |
getPaint(int index)
Returns a
Paint object from the list. |
int |
hashCode()
Returns a hash code value for the object.
|
void |
setPaint(int index,
java.awt.Paint paint)
Sets the
Paint for an item in the list. |
public java.awt.Paint getPaint(int index)
Paint object from the list.index - the index (zero-based).public void setPaint(int index,
java.awt.Paint paint)
Paint for an item in the list. The list is expanded if necessary.index - the index (zero-based).paint - the Paint.public boolean equals(java.lang.Object obj)
equals in class AbstractObjectListobj - the other object (null permitted).public int hashCode()
hashCode in class AbstractObjectList