ImageIconCache

class ImageIconCache<Key : IconKey>(resourcePath: String, resourceClass: Class<*>, softCapacity: Int = 100, strongCapacity: Int = 20)

A wrapper of an LRUCache keyed by an IconKey for storing scaled ImageIcons organized by scaled height.

Author

Richard Arriaga

Parameters

Key

The type of IconKey that represents the cache key.

resourcePath

The path to the resource location

Constructors

Link copied to clipboard
constructor(resourcePath: String, resourceClass: Class<*>, softCapacity: Int = 100, strongCapacity: Int = 20)

Construct an ImageIconCache.

Functions

Link copied to clipboard
operator fun get(k: Key): ImageIcon

Answer the ImageIcon for the associated key.