org.jfree.util

Class PaintList

public class PaintList extends AbstractObjectList

A table of Paint objects.

Author: David Gilbert

Constructor Summary
PaintList()
Creates a new list.
Method Summary
booleanequals(Object obj)
Tests the list for equality with another object (typically also a list).
PaintgetPaint(int index)
Returns a Paint object from the list.
inthashCode()
Returns a hash code value for the object.
voidsetPaint(int index, Paint paint)
Sets the Paint for an item in the list.

Constructor Detail

PaintList

public PaintList()
Creates a new list.

Method Detail

equals

public boolean equals(Object obj)
Tests the list for equality with another object (typically also a list).

Parameters: obj the other object (null permitted).

Returns: A boolean.

getPaint

public Paint getPaint(int index)
Returns a Paint object from the list.

Parameters: index the index (zero-based).

Returns: The object.

hashCode

public int hashCode()
Returns a hash code value for the object.

Returns: the hashcode

setPaint

public void setPaint(int index, Paint paint)
Sets the Paint for an item in the list. The list is expanded if necessary.

Parameters: index the index (zero-based). paint the Paint.