Arch4J 1.1

org.arch4j.ui.util
Class IconManager

java.lang.Object
  |
  +--org.arch4j.ui.util.IconManager

public class IconManager
extends Object

This static singleton class provides cached access to icons. Users of this code will call the getIcon(String iconName) method to get an ImageIcon. The iconName is the name of a graphic file, minus the gif extension, that can be found in the /icons/ directory. The file type and directory may someday be pulled out into a property file and defaulted to these values. Once an ImageIcon is loaded for the first time it is added to the cache to speed up subsequent requests.


Field Summary
static String filePath
           
static Hashtable iconCache
           
 
Constructor Summary
IconManager()
           
 
Method Summary
static ImageIcon getIcon(String iconName)
           
static String getIconFilename(String iconName)
           
static Image loadIcon(String imageFileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filePath

public static String filePath

iconCache

public static Hashtable iconCache
Constructor Detail

IconManager

public IconManager()
Method Detail

getIcon

public static ImageIcon getIcon(String iconName)

getIconFilename

public static String getIconFilename(String iconName)

loadIcon

public static Image loadIcon(String imageFileName)

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.