org.jfree.chart.entity
Class StandardEntityCollection
java.lang.Object
org.jfree.chart.entity.StandardEntityCollection
- Cloneable, EntityCollection, PublicCloneable, Serializable
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(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.
|
ChartEntity | getEntity(int index) - Returns a chart entity from the collection.
|
int | getEntityCount() - Returns the number of entities in the collection.
|
Iterator | iterator() - Returns an iterator for the entities in the collection.
|
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of this entity collection.
equals
public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
obj
- the object to test against (null
permitted).
getEntity
public 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.
- getEntity in interface EntityCollection
x
- the x coordinate.y
- the y coordinate.
- The entity (possibly
null
).