textbender.o.awt
Class ImageX

java.lang.Object
  extended by ImageX

public class ImageX
extends Object

Image utilities.


Method Summary
static Image defaultImage()
          A default image to use when the desired image is unavailable.
static Image i0()
          A null implementation of an image, having dimensions of zero.
static Image tryCreate(URL url, int size)
          Tries to create an image from a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

defaultImage

public static Image defaultImage()
A default image to use when the desired image is unavailable. It is a 2x2 pattern of coloured squares, that easily scales to any size.


i0

public static Image i0()
A null implementation of an image, having dimensions of zero.


tryCreate

public static Image tryCreate(URL url,
                              int size)
Tries to create an image from a URL.

Parameters:
url - of the image
size - expected for the image
Returns:
image created from the URL; or the defaultImage scaled to the expected size