visidia.misc
Class ImageHandler

java.lang.Object
  extended by visidia.misc.ImageHandler

public class ImageHandler
extends java.lang.Object

This class manages a unique image handler.


Method Summary
 javax.swing.ImageIcon createImageIcon(java.lang.String path)
          Creates an image icon.
static ImageHandler getInstance()
          Gets the single instance of ImageHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ImageHandler getInstance()
Gets the single instance of ImageHandler.

Returns:
single instance of ImageHandler

createImageIcon

public javax.swing.ImageIcon createImageIcon(java.lang.String path)
Creates an image icon.

Parameters:
path - the path
Returns:
the image icon, or null if the path was invalid