SRJRCFrames
v0.1.296

de.schwarzrot.ui.image
Class ImageFactory

java.lang.Object
  extended by de.schwarzrot.ui.image.ImageFactory

public class ImageFactory
extends Object

a utility class able to load images from inside a jar-file as well as from outside (filesystem, url). Once loaded images are cached for faster (re-)access.

Author:
Reinhard Mantey

Field Summary
static String IMAGE_NOT_FOUND
           
 
Constructor Summary
ImageFactory()
           
 
Method Summary
 ImageIcon createIcon(File fileSystemPath)
           
 ImageIcon createIcon(String propertyKey)
           
 ImageIcon createIcon(URL resourcePath)
           
 Image createImage(File fileSystemPath)
           
 Image createImage(String whatEver)
           
 Image createImage(URL resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_NOT_FOUND

public static final String IMAGE_NOT_FOUND
See Also:
Constant Field Values
Constructor Detail

ImageFactory

public ImageFactory()
Method Detail

createIcon

public ImageIcon createIcon(File fileSystemPath)

createIcon

public ImageIcon createIcon(String propertyKey)

createIcon

public ImageIcon createIcon(URL resourcePath)

createImage

public Image createImage(File fileSystemPath)

createImage

public Image createImage(String whatEver)

createImage

public Image createImage(URL resourcePath)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.