Package org.graffiti.core
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 Summary
Modifier and Type Method Description ImageIcon
getIcon(String name)
Returns the specified image icon or a blank icon, if the specified image icon could not be found.Image
getImage(String name)
Returns the specified image or a blank image, if the specified image could not be found.ImageIcon
getImageIcon(String name)
Returns the specified image icon or a blank icon, if the specified image icon could not be found.static ImageBundle
getInstance()
Returns the only instance of this class.Methods inherited from class org.graffiti.core.GenericBundle
getRes, getString
-
Method Details
-
getInstance
Returns the only instance of this class.- Returns:
- the only instance of a
Bundle
this class generates.
-
getIcon
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
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
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.
-