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.
-
AWT()
-
-
eventName(Event)
- Returns the name of the specified event id.
-
getAbsoluteLocation(Component)
- Returns the absolute location of a component.
-
getFrame(Component)
- Returns the Frame that the specified component is in.
-
waitForImage(Image)
- Loads the specified image immediately.
-
waitForImages(Image[])
- Loads the specified images immediately.
AWT
public AWT()
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
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
getFrame
public static Frame getFrame(Component comp)
- Returns the Frame that the specified component is in.
- Parameters:
- comp - The component contained in the Frame.
getAbsoluteLocation
public static Point getAbsoluteLocation(Component comp)
- Returns the absolute location of a component.
- Parameters:
- comp - The origin component.
eventName
public static String eventName(Event evt)
- Returns the name of the specified event id.
All Packages Class Hierarchy This Package Previous Next Index