|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<Preloadable>
com.threerings.opengl.util.PreloadableSet
public class PreloadableSet
Contains a set of preloadables and provides a means for incrementalling preloading them.
| Field Summary | |
|---|---|
protected GlContext |
_ctx
The application context. |
protected int |
_preloaded
The number of resources preloaded so far. |
protected List<Preloadable> |
_remaining
The list of resources remaining to be preloaded. |
| Constructor Summary | |
|---|---|
PreloadableSet(GlContext ctx)
Creates a new preloadable set. |
|
| Method Summary | |
|---|---|
boolean |
add(Preloadable preloadable)
|
float |
preloadBatch()
Preloads a batch of the default duration. |
float |
preloadBatch(long duration)
Preloads a batch of resources in the set. |
| Methods inherited from class java.util.HashSet |
|---|
clear, clone, contains, isEmpty, iterator, remove, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
| Field Detail |
|---|
protected GlContext _ctx
protected List<Preloadable> _remaining
protected int _preloaded
| Constructor Detail |
|---|
public PreloadableSet(GlContext ctx)
| Method Detail |
|---|
public float preloadBatch()
public float preloadBatch(long duration)
duration - the maximum amount of time to spend on the batch.
public boolean add(Preloadable preloadable)
add in interface Collection<Preloadable>add in interface Set<Preloadable>add in class HashSet<Preloadable>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||