protected static class TextureAtlasElement.RequestTask
extends java.lang.Object
implements java.lang.Runnable
run method retrieves and loads this
element's image source.| Modifier and Type | Field and Description |
|---|---|
protected TextureAtlasElement |
elem
The texture atlas element associated with this request task.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RequestTask(TextureAtlasElement elem)
Constructs a new request task with the specified texture atlas element, but otherwise does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether another request task is equivalent to this one.
|
int |
hashCode()
Returns the hash code for this request task's texture atlas element.
|
void |
run()
Retrieves and loads the image source from this request task's texture atlas element, and notifies the element
when the load completes.
|
java.lang.String |
toString()
Returns the string representation of this request task's texture atlas element.
|
protected TextureAtlasElement elem
protected RequestTask(TextureAtlasElement elem)
run method causes this to retrieve and load the specified element's image
source.elem - the texture atlas element who's image source is retrieved and loaded.java.lang.IllegalArgumentException - if the element is null.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to test.true if the specified object is a RequestTask, and its texture atlas element is
equivalent to this task's texture atlas element.public int hashCode()
hashCode in class java.lang.Objectpublic void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Object