org.jfree.util

Class ShapeList

public class ShapeList extends AbstractObjectList

A table of Shape objects.

Author: David Gilbert

Constructor Summary
ShapeList()
Creates a new list.
Method Summary
Objectclone()
Returns an independent copy of the list.
booleanequals(Object o)
Tests the list for equality with another object (typically also a list).
ShapegetShape(int index)
Returns a Shape object from the list.
inthashCode()
Returns a hash code value for the object.
voidsetShape(int index, Shape shape)
Sets the Shape for an item in the list.

Constructor Detail

ShapeList

public ShapeList()
Creates a new list.

Method Detail

clone

public Object clone()
Returns an independent copy of the list.

Returns: A clone.

Throws: CloneNotSupportedException if an item in the list does not support cloning.

equals

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

Parameters: o the other object.

Returns: A boolean.

getShape

public Shape getShape(int index)
Returns a Shape 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

setShape

public void setShape(int index, Shape shape)
Sets the Shape for an item in the list. The list is expanded if necessary.

Parameters: index the index (zero-based). shape the Shape.