org.jfree.chart.entity
public class StandardEntityCollection extends Object implements EntityCollection, Cloneable, PublicCloneable, Serializable
Constructor Summary | |
---|---|
StandardEntityCollection()
Constructs a new entity collection (initially empty). |
Method Summary | |
---|---|
void | add(ChartEntity entity)
Adds an entity to the collection.
|
void | addAll(EntityCollection collection)
Adds all the entities from the specified collection.
|
void | clear()
Clears all the entities from the collection. |
Object | clone()
Returns a clone of this entity collection.
|
boolean | equals(Object obj)
Tests this object for equality with an arbitrary object.
|
Collection | getEntities()
Returns the entities in an unmodifiable collection.
|
ChartEntity | getEntity(int index)
Returns a chart entity from the collection.
|
ChartEntity | getEntity(double x, double y)
Returns the last entity in the list with an area that encloses the
specified coordinates, or null if there is no such entity.
|
int | getEntityCount()
Returns the number of entities in the collection.
|
Iterator | iterator()
Returns an iterator for the entities in the collection.
|
Parameters: entity the entity (null
not permitted).
Parameters: collection the collection of entities (null
not
permitted).
Returns: A clone.
Throws: CloneNotSupportedException if the object cannot be cloned.
Parameters: obj the object to test against (null
permitted).
Returns: A boolean.
Returns: The entities.
Parameters: index the entity index.
Returns: The entity.
See Also: add
null
if there is no such entity.
Parameters: x the x coordinate. y the y coordinate.
Returns: The entity (possibly null
).
Returns: The entity count.
Returns: An iterator.