Package org.jfree.util
Class ShapeList
- java.lang.Object
-
- org.jfree.util.AbstractObjectList
-
- org.jfree.util.ShapeList
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ShapeList extends AbstractObjectList
A table ofShape
objects.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jfree.util.AbstractObjectList
DEFAULT_INITIAL_CAPACITY
-
-
Constructor Summary
Constructors Constructor Description ShapeList()
Creates a new list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
Returns an independent copy of the list.boolean
equals(Object obj)
Tests the list for equality with another object (typically also a list).Shape
getShape(int index)
Returns aShape
object from the list.int
hashCode()
Returns a hash code value for the object.void
setShape(int index, Shape shape)
Sets theShape
for an item in the list.
-
-
-
Method Detail
-
getShape
public Shape getShape(int index)
Returns aShape
object from the list.- Parameters:
index
- the index (zero-based).- Returns:
- The object.
-
setShape
public void setShape(int index, Shape shape)
Sets theShape
for an item in the list. The list is expanded if necessary.- Parameters:
index
- the index (zero-based).shape
- theShape
.
-
clone
public Object clone() throws CloneNotSupportedException
Returns an independent copy of the list.- Overrides:
clone
in classAbstractObjectList
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- if an item in the list does not support cloning.
-
equals
public boolean equals(Object obj)
Tests the list for equality with another object (typically also a list).- Overrides:
equals
in classAbstractObjectList
- 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 classAbstractObjectList
- Returns:
- the hashcode
-
-