Class ImageBundle

java.lang.Object
org.graffiti.core.GenericBundle
org.graffiti.core.ImageBundle

public class ImageBundle
extends GenericBundle
The resource bundle for the images used in the system. This class is implemented using the singlton pattern such that there will always be just on instance of a ImangeBundle created.
See Also:
GenericBundle
  • Method Details

    • getInstance

      public static ImageBundle getInstance()
      Returns the only instance of this class.
      Returns:
      the only instance of a Bundle this class generates.
    • getIcon

      public ImageIcon getIcon​(String name)
      Returns the specified image icon or a blank icon, if the specified image icon could not be found.
      Parameters:
      name - the property name of the icon.
      Returns:
      the specified image icon.
    • getImage

      public Image getImage​(String name)
      Returns the specified image or a blank image, if the specified image could not be found.
      Parameters:
      name - the property name of the icon.
      Returns:
      the specified icon.
    • getImageIcon

      public ImageIcon getImageIcon​(String name)
      Returns the specified image icon or a blank icon, if the specified image icon could not be found.
      Parameters:
      name - the property name of the icon.
      Returns:
      the specified image icon.