public class PFCImage extends Object
| Constructor and Description |
|---|
PFCImage() |
| Modifier and Type | Method and Description |
|---|---|
static Image |
getImage(Class clazz,
Component comp,
String name)
Convenience method to return an image based upon name specified.
|
static Image |
getImage(ClassLoader classLoader,
String name)
Convenience method to return an image based upon name specified.
|
static Image |
getImage(Class clazz,
String name)
Convenience method to return an image based upon name specified.
|
static Image |
getImage(URL url)
Convenience method to load image from specified URL.
|
static Image |
getImage(URL url,
Component target)
Convenience method to load image from specified URL.
|
public static Image getImage(Class clazz, Component comp, String name)
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.public static Image getImage(Class clazz, String name)
clazz - Class used to retrieve the image via getResource().name - name of the desired resource.public static Image getImage(ClassLoader classLoader, String name)
classLoader - ClassLoader used to load the image via getResource().name - name of the desired resource.public static Image getImage(URL url)
url - URL that specifies image locationpublic static Image getImage(URL url, Component target)
url - URL that specifies image locationcomp - the component on which the images will eventually be drawn,
may be nullCopyright © 2003, 2023, Oracle and/or its affiliates.