protected static class TextureAtlasElement.RequestTask extends Object implements 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(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.
|
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.IllegalArgumentException
- if the element is null
.public boolean equals(Object o)
public int hashCode()
public void run()