borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.util
java.lang.Object +----borland.jbcl.util.ImageLoader
Properties Methods
The ImageLoader class is a utility that loads images from a variety of sources including URLs, resources, and BLOBs. There are two methods for loading images from each source type; one returns the image as it is loading, and the other waits until the image is loaded before the method returns.
public static Image load(java.lang.String path, java.awt.Component component)Loads the specified image into the specified component, returning the image.
Parameters:
public static Image load(java.lang.String path, java.awt.Component component, boolean wait)Loads the specified image into the specified component, returning the image. If wait is true, the image doesn't return until the image is fully loaded.
Parameters:
public static Image load(java.net.URL url, java.awt.Component component)Loads the image specified with an URL into the specified component, returning the image.
Parameters:
public static Image load(java.net.URL url, java.awt.Component component, boolean wait)Loads the image specified with an URL into the specified component, returning the image. If wait is true, the image doesn't return until the image is fully loaded.
Parameters:
public static Image loadFromPath(borland.jbcl.util.SearchPath path, java.lang.String name, java.awt.Component component)Loads the image specified with a search path and file name into the specified component, returning the image.
Parameters:
public static Image loadFromPath(borland.jbcl.util.SearchPath path, java.lang.String name, java.awt.Component component, boolean wait)Loads the image specified with a search path and file name into the specified component, returning the image. If wait is true, the image doesn't return until the image is fully loaded.
Parameters:
public static Image loadFromResource(java.lang.String name, java.awt.Component component)Loads the specified image from a resource file into the specified component, returning the image.
Parameters:
public static Image loadFromResource(java.lang.String name, java.awt.Component component, java.lang.Class cl)Loads the specified image from a resource file into the specified component, returning the image. This method is called from the previous loadFromResource() method.
Parameters:
public static boolean waitForImage(java.awt.Component component, java.awt.Image image)Called by the load methods that wait for the image to load before returning the image. waitForImage() returns true if no error occurs and causes the called method to pause as the image is loaded.