Package org.xj3d.ui.awt.widgets
Class IconLoader
java.lang.Object
org.xj3d.ui.awt.widgets.IconLoader
A convenience class that loads Icons and images for Xj3D's internal uses
and provides caching mechanisms.
- Version:
- $Revision: 1.2 $
- Author:
- Justin Couch
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IconLoader
public IconLoader()
-
-
Method Details
-
loadImage
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 name to load the icon for. If not found, no image is loaded.reporter
- An error reporter to send error messages to- Returns:
- An image for the named path.
-
loadIcon
Load an icon for the named node type. Looks in the classpath for the image. The path must be qualified relative to the classpath.- Parameters:
name
- The name of the node to load the icon for. If not found, no image is loaded.reporter
- An error reporter to send error messages to- Returns:
- An icon for the named type.
-