|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectCache<K,V>
GeneratingCache<String,BufferedImage>
ImageCache
class ImageCache
Maintain a cache of palette-mapped images used for image highlighting.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Cache |
|---|
Cache.ListEntry, Cache.NullIterator |
| Field Summary | |
|---|---|
private int |
outColorBase
|
| Fields inherited from class Cache |
|---|
ageList, keyMap |
| Constructor Summary | |
|---|---|
ImageCache(int outColorBase)
Construct the cache |
|
| Method Summary | |
|---|---|
protected BufferedImage |
generate(String filename)
Read in and map an image |
private BufferedImage |
remapPalette(BufferedImage inImg)
Remap the colors in the given image, creating space for highlight versions of the colors. |
| Methods inherited from class GeneratingCache |
|---|
addDependency, find |
| Methods inherited from class Cache |
|---|
cleanup, clear, dependenciesValid, getDependencies, has, lastSet, logAction, remove, size |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int outColorBase
| Constructor Detail |
|---|
ImageCache(int outColorBase)
| Method Detail |
|---|
protected BufferedImage generate(String filename)
throws Exception
generate in class GeneratingCache<String,BufferedImage>filename - The key to generate a value for.
Exception - If a value cannot be generated for any reason.
private BufferedImage remapPalette(BufferedImage inImg)
throws DynamicError
inImg - The image to remap
DynamicError
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||