Class PFCImage

java.lang.Object
com.portal.pfc.ui.PFCImage

public class PFCImage extends Object
  • Constructor Details

    • PFCImage

      public PFCImage()
  • Method Details

    • getImage

      public static Image getImage(Class clazz, Component comp, String name)
      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

      public static Image getImage(Class clazz, String name)
      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

      public static Image getImage(ClassLoader classLoader, String name)
      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

      public static Image getImage(URL url)
      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

      public static Image getImage(URL url, Component target)
      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
      comp - the component on which the images will eventually be drawn, may be null
      Returns:
      Image or null if not found.