j3d.org Code

org.j3d.util
Class ImageLoader

java.lang.Object
  extended byorg.j3d.util.ImageLoader

public class ImageLoader
extends java.lang.Object

A convenience class that loads Icons for users and provides caching mechanisms.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Constructor Summary
ImageLoader()
           
 
Method Summary
static javax.swing.Icon loadIcon(java.lang.String name)
          Load an icon for the named image file.
static java.awt.Image loadImage(java.lang.String name)
          Load an image for the named image file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageLoader

public ImageLoader()
Method Detail

loadIcon

public static javax.swing.Icon loadIcon(java.lang.String name)
Load an icon for the named image file. Looks in the classpath for the image so the path provided must be fully qualified relative to the classpath.

Parameters:
name - The path to load the icon for. If not found, no image is loaded.
Returns:
An icon for the named path.

loadImage

public static java.awt.Image loadImage(java.lang.String name)
Load an image for the named image file. Looks in the classpath for the image so the path provided must be fully qualified relative to the classpath.

Parameters:
name - The path to load the icon for. If not found, no image is loaded.
Returns:
An image for the named path.

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org