dsto.dfc.swing.icons
Class ImageLoader

java.lang.Object
  extended by dsto.dfc.swing.icons.ImageLoader

public final class ImageLoader
extends Object

Provides image and icon creation services.

Version:
$Revision$

Method Summary
static Graphics createGraphics()
          For those times when you just need a graphics context and don't care where it came from.
static Frame getFrame()
          For those times that you need a Frame and don't care where it came from.
static Icon getIcon(String resourceName)
           
static Image getImage(String imageResourceName)
           
static Image getImage(String imageResourceName, Component comp)
           
static Image getImage(String imageResourceName, Toolkit tk)
           
static Image getImage(URL url, Toolkit tk)
           
static boolean waitForImage(Image image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIcon

public static Icon getIcon(String resourceName)

getImage

public static Image getImage(URL url,
                             Toolkit tk)

getImage

public static Image getImage(String imageResourceName,
                             Toolkit tk)

getImage

public static Image getImage(String imageResourceName)

getImage

public static Image getImage(String imageResourceName,
                             Component comp)

waitForImage

public static boolean waitForImage(Image image)

createGraphics

public static Graphics createGraphics()
For those times when you just need a graphics context and don't care where it came from.

Returns:
A new graphics context. Actually drawing on it will have zero effect, but it may be used for other things such as retrieving font info, etc.

getFrame

public static Frame getFrame()
For those times that you need a Frame and don't care where it came from.

Returns:
A frame. Do not even think of making it visible, moving it, etc.


Copyright © 2008 Commonwealth of Australia