Class ImageUtilities

java.lang.Object
  extended by ImageUtilities

public class ImageUtilities
extends java.lang.Object

The ImageUtilities class provides the buffered images for the graphics. All images are offered by an image object with components such as width, height, and color information. The class ImageUtilities includes methods for waiting and obtaining the buffered images. There are no OS/Hardware dependencies and no variances. There is no need for any security constraints and no references to external specifications.


Constructor Summary
ImageUtilities()
          Constructs an ImageUtilities object.
 
Method Summary
static java.awt.image.BufferedImage getBufferedImage(java.lang.String imageFile, java.awt.Component c)
          Returns BufferedImage object that we look for.
static boolean waitForImage(java.awt.Image image, java.awt.Component c)
          Waits for the image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtilities

public ImageUtilities()
Constructs an ImageUtilities object. This is basically for JUnit testing. There are no OS/Hardware dependencies and no variances. There is no need for any security constraints and no references to external specifications.

Method Detail

getBufferedImage

public static java.awt.image.BufferedImage getBufferedImage(java.lang.String imageFile,
                                                            java.awt.Component c)
Returns BufferedImage object that we look for. There are no OS/Hardware dependencies and no variances. There is no need for any security constraints and no references to external specifications.

Parameters:
imageFile - the string used to get an image to be passed for waiting for the image.
c - contains the information of the image.
Returns:
the bufferedImage for generating the graphics.

waitForImage

public static boolean waitForImage(java.awt.Image image,
                                   java.awt.Component c)
Waits for the image. There are no OS/Hardware dependencies and no variances. There is no need for any security constraints and no references to external specifications.

Parameters:
image - contains information about the image with its size.
c - the components of the image.
Returns:
true if the tracker waits for the image; false when any error occurs.