NASA World Wind

gov.nasa.worldwind.cache
Class BasicTextureCache

java.lang.Object
  extended by gov.nasa.worldwind.cache.BasicTextureCache
All Implemented Interfaces:
TextureCache

public class BasicTextureCache
extends Object
implements TextureCache


Nested Class Summary
static class BasicTextureCache.TextureEntry
           
 
Constructor Summary
BasicTextureCache(long loWater, long hiWater)
           
 
Method Summary
 void clear()
           
 boolean contains(Object key)
           
 Texture get(Object key)
           
 long getCapacity()
           
 long getFreeCapacity()
           
 int getNumObjects()
           
 long getUsedCapacity()
           
 void put(Object key, Texture texture)
           
 void remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTextureCache

public BasicTextureCache(long loWater,
                         long hiWater)
Method Detail

clear

public void clear()
Specified by:
clear in interface TextureCache

contains

public boolean contains(Object key)
Specified by:
contains in interface TextureCache

get

public Texture get(Object key)
Specified by:
get in interface TextureCache

getCapacity

public long getCapacity()
Specified by:
getCapacity in interface TextureCache

getFreeCapacity

public long getFreeCapacity()
Specified by:
getFreeCapacity in interface TextureCache

getNumObjects

public int getNumObjects()
Specified by:
getNumObjects in interface TextureCache

getUsedCapacity

public long getUsedCapacity()
Specified by:
getUsedCapacity in interface TextureCache

put

public void put(Object key,
                Texture texture)
Specified by:
put in interface TextureCache

remove

public void remove(Object key)
Specified by:
remove in interface TextureCache

NASA World Wind