ix.util
Class WaitImage

java.lang.Object
  |
  +--ix.util.WaitImage

public class WaitImage
extends java.lang.Object


Field Summary
static int DEFAULT_IMAGE_SIZE
           
 
Constructor Summary
WaitImage()
           
 
Method Summary
static java.awt.Image defaultImage(java.awt.Component c)
          Create in memory a default image in a nominated component.
static java.awt.Image waitCreateImage(int w, int h, java.awt.Component c)
          waitCreateImage is used for secure image handling in ViewMatrix.
static java.awt.Image waitGetImage(java.io.File f, java.awt.Component c)
           
static java.awt.Image waitGetImage(java.lang.String fname, java.awt.Component c)
          Method to load an image for a component, waiting for it to become available.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_IMAGE_SIZE

public static int DEFAULT_IMAGE_SIZE
Constructor Detail

WaitImage

public WaitImage()
Method Detail

defaultImage

public static java.awt.Image defaultImage(java.awt.Component c)
Create in memory a default image in a nominated component. Component must have a peer when this is called. Image is a square transparent (clear black) image with a gray cross on it

waitGetImage

public static java.awt.Image waitGetImage(java.lang.String fname,
                                          java.awt.Component c)
Method to load an image for a component, waiting for it to become available. If any error, substitute a small internally crafted image clear with a gray cross on it

waitGetImage

public static java.awt.Image waitGetImage(java.io.File f,
                                          java.awt.Component c)

waitCreateImage

public static java.awt.Image waitCreateImage(int w,
                                             int h,
                                             java.awt.Component c)
waitCreateImage is used for secure image handling in ViewMatrix. It makes sure we WAIT for images to be created rather than relaying on the AWT thread to queue up graphics operations until the image is created in the peer.