Package org.jfree.util
Class ShapeList
- java.lang.Object
-
- org.jfree.util.AbstractObjectList
-
- org.jfree.util.ShapeList
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ShapeList extends AbstractObjectList
A table ofShapeobjects.- 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 java.lang.Objectclone()Returns an independent copy of the list.booleanequals(java.lang.Object obj)Tests the list for equality with another object (typically also a list).java.awt.ShapegetShape(int index)Returns aShapeobject from the list.inthashCode()Returns a hash code value for the object.voidsetShape(int index, java.awt.Shape shape)Sets theShapefor an item in the list.
-
-
-
Constructor Detail
-
ShapeList
public ShapeList()
Creates a new list.
-
-
Method Detail
-
getShape
public java.awt.Shape getShape(int index)
Returns aShapeobject from the list.- Parameters:
index- the index (zero-based).- Returns:
- The object.
-
setShape
public void setShape(int index, java.awt.Shape shape)
Sets theShapefor an item in the list. The list is expanded if necessary.- Parameters:
index- the index (zero-based).shape- theShape.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Returns an independent copy of the list.- Overrides:
clonein classAbstractObjectList- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException- if an item in the list does not support cloning.
-
equals
public boolean equals(java.lang.Object obj)
Tests the list for equality with another object (typically also a list).- Overrides:
equalsin classAbstractObjectList- Parameters:
obj- the other object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code value for the object.- Overrides:
hashCodein classAbstractObjectList- Returns:
- the hashcode
-
-