Class PaintList

All Implemented Interfaces:
Serializable, Cloneable

public class PaintList extends AbstractObjectList
A table of Paint objects.
See Also:
  • Constructor Details

    • PaintList

      public PaintList()
      Creates a new list.
  • Method Details

    • getPaint

      public Paint getPaint(int index)
      Returns a Paint object from the list.
      Parameters:
      index - the index (zero-based).
      Returns:
      The object.
    • 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.
    • equals

      public boolean equals(Object obj)
      Tests the list for equality with another object (typically also a list).
      Overrides:
      equals in class AbstractObjectList
      Parameters:
      obj - the other object (null permitted).
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class AbstractObjectList
      Returns:
      the hashcode