org.xulux.guilayer.swing.util
Class ImageCache
java.lang.Object
org.xulux.guilayer.swing.util.ImageCache
public class ImageCache
- extends java.lang.Object
An image cache to make loading of pages a lot quicker.
At destroy of a part if will empty the cache, so the image
resources are freed.
- Version:
- $Id: ImageCache.java,v 1.1 2005/12/18 12:58:22 mvdb Exp $
- Author:
- Martin van den Bemt
Method Summary |
void |
addImage(java.lang.String name,
java.awt.Image image)
|
void |
addImage(java.lang.String name,
javax.swing.ImageIcon image)
|
void |
clear()
|
java.awt.Image |
getImage(java.lang.String name)
|
javax.swing.ImageIcon |
getImageIcon(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageCache
public ImageCache()
addImage
public void addImage(java.lang.String name,
java.awt.Image image)
addImage
public void addImage(java.lang.String name,
javax.swing.ImageIcon image)
getImage
public java.awt.Image getImage(java.lang.String name)
getImageIcon
public javax.swing.ImageIcon getImageIcon(java.lang.String name)
clear
public void clear()
Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.