org.jagatoo.loaders.textures
Interface AbstractTexture

All Superinterfaces:
NamableObject, NamedObject

public interface AbstractTexture
extends NamableObject

Abstraction of a Texture.


Method Summary
 java.lang.String getCacheKey()
           
 TextureFormat getFormat()
           
 int getHeight()
           
 AbstractTextureImage getImage(int level)
           
 int getImagesCount()
           
 java.lang.String getName()
           
 TextureType getType()
           
 int getWidth()
           
 void setCacheKey(java.lang.String key)
          Sets the key-String, by which this texture has been cached in the TextureLoader.
 void setImage(int level, AbstractTextureImage image)
           
 void setName(java.lang.String name)
          Sets the Texture's name (the String, that has been used to load it through TextureLoader).
 

Method Detail

setCacheKey

void setCacheKey(java.lang.String key)
Sets the key-String, by which this texture has been cached in the TextureLoader.


getCacheKey

java.lang.String getCacheKey()
Returns:
the key-String, by which this texture has been cached in the TextureLoader.

setName

void setName(java.lang.String name)
Sets the Texture's name (the String, that has been used to load it through TextureLoader).

Specified by:
setName in interface NamableObject

getName

java.lang.String getName()
Specified by:
getName in interface NamedObject
Returns:
the Texture's name (the String, that has been used to load it through TextureLoader).

getType

TextureType getType()
Returns:
the Texture's Type.

getWidth

int getWidth()
Returns:
the Texture's actual width.

getHeight

int getHeight()
Returns:
the Texture's actual height.

getFormat

TextureFormat getFormat()
Returns:
the Texture's Format.

setImage

void setImage(int level,
              AbstractTextureImage image)

getImage

AbstractTextureImage getImage(int level)

getImagesCount

int getImagesCount()