org.jfree.util

Class StrokeList

public class StrokeList extends AbstractObjectList

A table of Stroke objects.

Author: David Gilbert

Constructor Summary
StrokeList()
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).
StrokegetStroke(int index)
Returns a Stroke object from the list.
inthashCode()
Returns a hash code value for the object.
voidsetStroke(int index, Stroke stroke)
Sets the Stroke for an item in the list.

Constructor Detail

StrokeList

public StrokeList()
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 cannot be cloned.

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.

getStroke

public Stroke getStroke(int index)
Returns a Stroke 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

setStroke

public void setStroke(int index, Stroke stroke)
Sets the Stroke for an item in the list. The list is expanded if necessary.

Parameters: index the index (zero-based). stroke the Stroke.