public static class GlobalInWuicStd.ImageLoader extends java.lang.Object implements ImageResource
Modifier and Type | Field and Description |
---|---|
java.util.Hashtable<java.lang.String,java.lang.ref.SoftReference<javax.swing.ImageIcon>> |
imageCache |
Constructor and Description |
---|
ImageLoader() |
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
getImageIcon(java.lang.String imageIconName)
Returns an image loaded by name from typical images folder, e.g.
|
javax.swing.ImageIcon |
getImageIconIndividual(java.lang.String imagePath)
Returns image icons for path as specified - in opposite to getImageIcon, the image is searched
absolutely respectively below current directory or the code base in case of applets.
|
public java.util.Hashtable<java.lang.String,java.lang.ref.SoftReference<javax.swing.ImageIcon>> imageCache
public javax.swing.ImageIcon getImageIcon(java.lang.String imageIconName)
ImageResource
getImageIcon
in interface ImageResource
imageIconName
- the name of image icon to loadpublic javax.swing.ImageIcon getImageIconIndividual(java.lang.String imagePath)
ImageResource
getImageIconIndividual
in interface ImageResource
imagePath
- the path of the image file to be loadedCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de