public interface EntityCollection
ChartEntity
objects.Modifier and Type | Method and Description |
---|---|
void |
add(ChartEntity entity)
Adds an entity to the collection.
|
void |
addAll(EntityCollection collection)
Adds the entities from another collection to this collection.
|
void |
clear()
Clears all entities.
|
Collection |
getEntities()
Returns the entities in an unmodifiable collection.
|
ChartEntity |
getEntity(double x,
double y)
Returns an entity whose area contains the specified point.
|
ChartEntity |
getEntity(int index)
Returns an entity from the collection.
|
int |
getEntityCount()
Returns the entity count.
|
Iterator |
iterator()
Returns an iterator for the entities in the collection.
|
void clear()
void add(ChartEntity entity)
entity
- the entity (null
not permitted).void addAll(EntityCollection collection)
collection
- the other collection.ChartEntity getEntity(double x, double y)
x
- the x coordinate.y
- the y coordinate.ChartEntity getEntity(int index)
index
- the index (zero-based).int getEntityCount()
Collection getEntities()
Iterator iterator()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics