|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.entity.StandardEntityCollection
public class StandardEntityCollection
A standard implementation of the EntityCollection
interface.
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. |
java.lang.Object |
clone()
Returns a clone of this entity collection. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object. |
java.util.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. |
java.util.Iterator |
iterator()
Returns an iterator for the entities in the collection. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardEntityCollection()
Method Detail |
---|
public int getEntityCount()
getEntityCount
in interface EntityCollection
public ChartEntity getEntity(int index)
getEntity
in interface EntityCollection
index
- the entity index.
add(ChartEntity)
public void clear()
clear
in interface EntityCollection
public void add(ChartEntity entity)
add
in interface EntityCollection
entity
- the entity (null
not permitted).public void addAll(EntityCollection collection)
addAll
in interface EntityCollection
collection
- the collection of entities (null
not
permitted).public ChartEntity getEntity(double x, double y)
null
if there is no such entity.
getEntity
in interface EntityCollection
x
- the x coordinate.y
- the y coordinate.
null
).public java.util.Collection getEntities()
getEntities
in interface EntityCollection
public java.util.Iterator iterator()
iterator
in interface EntityCollection
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to test against (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object cannot be cloned.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |