gui
Class ImageIconRegistry

java.lang.Object
  extended by gui.ImageIconRegistry

public class ImageIconRegistry
extends java.lang.Object

In this class the images for the imagePanelToolbarDecorator can be registered. It is a Singleton.


Method Summary
 void addIcon(java.lang.String name, javax.swing.ImageIcon i)
          Add an icon to the Map of imageIcons
 javax.swing.ImageIcon getIcon(java.lang.String name)
          Get an imageIcon from the Map
static ImageIconRegistry getInstance()
          Returns the instance and creates one if it was null before
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ImageIconRegistry getInstance()
Returns the instance and creates one if it was null before

Returns:
instance

addIcon

public void addIcon(java.lang.String name,
                    javax.swing.ImageIcon i)
Add an icon to the Map of imageIcons

Parameters:
name -
i -

getIcon

public javax.swing.ImageIcon getIcon(java.lang.String name)
Get an imageIcon from the Map

Parameters:
name -
Returns:
ImageIcon