org.jfree.chart
Class LegendItemCollection
java.lang.Object
org.jfree.chart.LegendItemCollection
- Cloneable, Serializable
extends java.lang.Object
implements Cloneable, Serializable
A collection of legend items.
void | add(LegendItem item) - Adds a legend item to the collection.
|
void | addAll(LegendItemCollection collection) - Adds the legend items from another collection to this collection.
|
Object | clone() - Returns a clone of the collection.
|
boolean | equals(Object obj) - Tests this collection for equality with an arbitrary object.
|
LegendItem | get(int index) - Returns a legend item from the collection.
|
int | getItemCount() - Returns the number of legend items in the collection.
|
Iterator | iterator() - Returns an iterator that provides access to all the legend items.
|
LegendItemCollection
public LegendItemCollection()
Constructs a new legend item collection, initially empty.
add
public void add(LegendItem item)
Adds a legend item to the collection.
addAll
public void addAll(LegendItemCollection collection)
Adds the legend items from another collection to this collection.
collection
- the other collection.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the collection.
equals
public boolean equals(Object obj)
Tests this collection for equality with an arbitrary object.
obj
- the object (null
permitted).
get
public LegendItem get(int index)
Returns a legend item from the collection.
index
- the legend item index (zero-based).
getItemCount
public int getItemCount()
Returns the number of legend items in the collection.
iterator
public Iterator iterator()
Returns an iterator that provides access to all the legend items.