Package com.portal.pfc.ui
Class PFCImage
java.lang.Object
com.portal.pfc.ui.PFCImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Image
getImage
(ClassLoader classLoader, String name) Convenience method to return an image based upon name specified.static Image
Convenience method to return an image based upon name specified.static Image
Convenience method to return an image based upon name specified.static Image
Convenience method to load image from specified URL.static Image
Convenience method to load image from specified URL.
-
Constructor Details
-
PFCImage
public PFCImage()
-
-
Method Details
-
getImage
Convenience method to return an image based upon name specified. getImage() will search through the classpath looking for the given image (including images in jar files).- Parameters:
clazz
- Class used to retrieve the image via getResource().comp
- the component on which the images will eventually be drawn.name
- name of the desired resource.- Returns:
- Image or null if not found.
-
getImage
Convenience method to return an image based upon name specified. getImage() will search through the classpath looking for the given image (including images in jar files).- Parameters:
clazz
- Class used to retrieve the image via getResource().name
- name of the desired resource.- Returns:
- Image or null if not found.
-
getImage
Convenience method to return an image based upon name specified. getImage() will search through the classpath looking for the given image- Parameters:
classLoader
- ClassLoader used to load the image via getResource().name
- name of the desired resource.- Returns:
- Image or null if not found.
-
getImage
Convenience method to load image from specified URL. getImage() will search through the classpath looking for the given image (including images in jar files).- Parameters:
url
- URL that specifies image location- Returns:
- Image or null if not found.
-
getImage
Convenience method to load image from specified URL. getImage() will search through the classpath looking for the given image (including images in jar files).- Parameters:
url
- URL that specifies image locationcomp
- the component on which the images will eventually be drawn, may be null- Returns:
- Image or null if not found.
-