|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.geom.particle.ParticleList
public class ParticleList
A special-case linked-list (buffer) implementation for particle systems.
The implementation uses a double linked list. This class is not meant for use outside of this package and derived classes using this package. The class is made public to allow derived packages to access it, but constructor is left package private to prevent external use.
Method Summary | |
---|---|
void |
add(Particle o)
Adds the specified element to this list. |
void |
clear()
Removes all of the elements from this set. |
void |
clearCachedObjects()
Clean up the internal cache and reduce it to zero. |
Particle |
current()
Get the current item that is being pointed to in the list. |
boolean |
isEmpty()
Check to see if this set contains elements. |
Particle |
next()
Fetch the next item in the list from this one and advance the current pointer to it. |
Particle |
remove()
Removes the current element from this set if it is present. |
void |
reset()
Reset the list pointer to just before the first item in the list. |
int |
size()
Returns the number of elements in this set (its cardinality). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int size()
public boolean isEmpty()
public void reset()
public Particle next()
public Particle current()
public void add(Particle o)
o
- element to be added to this set
java.lang.NullPointerException
- The passed object was nullpublic Particle remove()
public void clear()
public void clearCachedObjects()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |