com.jme3.asset
Class GeneratedTextureKey

java.lang.Object
  extended by com.jme3.asset.AssetKey<Texture>
      extended by com.jme3.asset.TextureKey
          extended by com.jme3.asset.GeneratedTextureKey
All Implemented Interfaces:
Savable, java.lang.Cloneable

public class GeneratedTextureKey
extends TextureKey

This key is mostly used to distinguish between textures that are loaded from the given assets and those being generated automatically. Every generated texture will have this kind of key attached.


Field Summary
 
Fields inherited from class com.jme3.asset.AssetKey
extension, folder, name
 
Constructor Summary
GeneratedTextureKey(java.lang.String name)
          Constructor.
 
Method Summary
 java.lang.String getExtension()
           
 java.lang.String getFolder()
           
 java.lang.String toString()
           
 
Methods inherited from class com.jme3.asset.TextureKey
equals, getAnisotropy, getCacheType, getProcessorType, getTextureTypeHint, hashCode, isAsCube, isAsTexture3D, isFlipY, isGenerateMips, read, setAnisotropy, setAsCube, setAsTexture3D, setGenerateMips, setTextureTypeHint, write
 
Methods inherited from class com.jme3.asset.AssetKey
clone, getExtension, getFolder, getName, reducePath
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratedTextureKey

public GeneratedTextureKey(java.lang.String name)
Constructor. Stores the name. Extension and folder name are empty strings.

Parameters:
name - the name of the texture
Method Detail

getExtension

public java.lang.String getExtension()
Overrides:
getExtension in class AssetKey<Texture>
Returns:
The extension of the AssetKey's name. For example, the name "Interface/Logo/Monkey.png" has an extension of "png".

getFolder

public java.lang.String getFolder()
Overrides:
getFolder in class AssetKey<Texture>
Returns:
The folder in which the asset is located in. E.g. if the name is "Models/MyModel/MyModel.j3o" then "Models/MyModel/" is returned.

toString

public java.lang.String toString()
Overrides:
toString in class TextureKey