| Package | com.yworks.util |
| Class | public class BitmapCache |
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():IteratorReturns 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.
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):voidStore the given data for the given key.
Parameterskey: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):voidRemoves the data cached for the given key.
Parameterskey:String — key to remove.
|