org.jfree.util
Class PaintList
- Cloneable, Serializable
A table of Paint objects.
boolean | equals(Object obj)- Tests the list for equality with another object (typically also a list).
|
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, Paint paint)- Sets the
Paint for an item in the list.
|
PaintList
public PaintList()
Creates a new list.
equals
public boolean equals(Object obj)
Tests the list for equality with another object (typically also a list).
- equals in interface AbstractObjectList
obj - the other object (null permitted).
getPaint
public Paint getPaint(int index)
Returns a Paint object from the list.
index - the index (zero-based).
setPaint
public void setPaint(int index,
Paint paint) Sets the Paint for an item in the list. The list is expanded if necessary.
index - the index (zero-based).paint - the Paint.