Package | com.yworks.util |
Class | public class BitmapCache |
Inheritance | BitmapCache Object |
The cache uses weak references for the keys.
Method | Defined By | ||
---|---|---|---|
[static]
Returns an iterator over all registered keys. | BitmapCache | ||
lookup(key:String):Object [static]
Returns the BitmapData or ImageLoader that was stored for the given key. | BitmapCache | ||
map(key:String, data:BitmapData):void [static]
Store the given data for the given key. | BitmapCache | ||
unMap(key:String):void [static]
Removes the data cached for the given key. | BitmapCache |
getRegisteredKeys | () | method |
public static function getRegisteredKeys():Iterator
Returns an iterator over all registered keys.
ReturnsIterator |
lookup | () | method |
public static function lookup(key:String):Object
Returns the BitmapData
or ImageLoader
that was stored for the given key.
Returns null if the key does not exist.
Parameters
key:String — The key to get the data for.
|
Object — The BitmapData or ImageLoader that was stored for the given key or null .
|
map | () | method |
public static function map(key:String, data:BitmapData):void
Store the given data for the given key.
Parameters
key:String — The key to store the data for
| |
data:BitmapData — The data to be cached for the given key.
|
unMap | () | method |
public static function unMap(key:String):void
Removes the data cached for the given key.
Parameters
key:String — key to remove.
|