org.jfree.chart.entity
Interface EntityCollection
- StandardEntityCollection
This interface defines the methods used to access an ordered list of
ChartEntity
objects.
add
public void add(ChartEntity entity)
Adds an entity to the collection.
entity
- the entity (null
not permitted).
addAll
public void addAll(EntityCollection collection)
Adds the entities from another collection to this collection.
collection
- the other collection.
clear
public void clear()
Clears all entities.
getEntities
public Collection getEntities()
Returns the entities in an unmodifiable collection.
getEntity
public ChartEntity getEntity(double x,
double y)
Returns an entity whose area contains the specified point.
x
- the x coordinate.y
- the y coordinate.
getEntity
public ChartEntity getEntity(int index)
Returns an entity from the collection.
index
- the index (zero-based).
iterator
public Iterator iterator()
Returns an iterator for the entities in the collection.