|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.textures.cache.TextureCache
public abstract class TextureCache
A TextureCache caches Textures, so that they don't
get loaded multiple times.
| Constructor Summary | |
|---|---|
protected |
TextureCache()
|
| Method Summary | |
|---|---|
void |
add(java.lang.String key,
AbstractTexture texture)
Removes the Texture from the cache. |
protected abstract void |
addImpl(java.lang.String key,
AbstractTexture texture)
Removes the Texture from the cache. |
abstract void |
clear()
Clears the Texture-cache. |
abstract AbstractTexture |
get(java.lang.String key)
|
java.lang.String[] |
getCachedKeys()
|
abstract java.util.Collection<AbstractTexture> |
getCachedTextures()
|
boolean |
isEnabled()
|
void |
popEnabled()
|
void |
pushEnabled(boolean enabled)
|
void |
remove(AbstractTexture texture)
Removes the Texture from the cache. |
protected abstract void |
removeImpl(AbstractTexture texture)
Removes the Texture from the cache. |
void |
setEnabled(boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TextureCache()
| Method Detail |
|---|
public void setEnabled(boolean enabled)
public void pushEnabled(boolean enabled)
public void popEnabled()
public final boolean isEnabled()
protected abstract void addImpl(java.lang.String key,
AbstractTexture texture)
key - the cache-key of the Texture to be removed.
public final void add(java.lang.String key,
AbstractTexture texture)
key - the cache-key of the Texture to be removed.protected abstract void removeImpl(AbstractTexture texture)
texture - the Texture to be removedpublic final void remove(AbstractTexture texture)
texture - the Texture to be removedpublic abstract AbstractTexture get(java.lang.String key)
key -
public final java.lang.String[] getCachedKeys()
public abstract java.util.Collection<AbstractTexture> getCachedTextures()
public abstract void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||