All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.taligent.util.AWT

java.lang.Object
   |
   +----COM.taligent.util.AWT

public class AWT
extends Object
A collection of AWT utility functions.

Version:
1.0
Author:
Andy Clark, Taligent Inc.

Constructor Index

 o AWT()

Method Index

 o eventName(Event)
Returns the name of the specified event id.
 o getAbsoluteLocation(Component)
Returns the absolute location of a component.
 o getFrame(Component)
Returns the Frame that the specified component is in.
 o waitForImage(Image)
Loads the specified image immediately.
 o waitForImages(Image[])
Loads the specified images immediately.

Constructors

 o AWT
 public AWT()

Methods

 o waitForImage
 public static void waitForImage(Image image) throws InterruptedException
Loads the specified image immediately. If an error occurs while the image is loaded, the MediaTracker will throw an exception.

Parameters:
image - The image to load.
Throws: InterruptedException
Thrown if loading of image is interrupted.
See Also:
waitForImages
 o waitForImages
 public static void waitForImages(Image images[]) throws InterruptedException
Loads the specified images immediately. If an error occurs while the images are loaded, the MediaTracker will throw an exception.

Parameters:
images - The images to load.
Throws: InterruptedException
Thrown if loading of images is interrupted.
See Also:
waitForImage
 o getFrame
 public static Frame getFrame(Component comp)
Returns the Frame that the specified component is in.

Parameters:
comp - The component contained in the Frame.
 o getAbsoluteLocation
 public static Point getAbsoluteLocation(Component comp)
Returns the absolute location of a component.

Parameters:
comp - The origin component.
 o eventName
 public static String eventName(Event evt)
Returns the name of the specified event id.


All Packages  Class Hierarchy  This Package  Previous  Next  Index