Xj3D VRML/X3D Code API

org.web3d.util
Class IconLoader

java.lang.Object
  extended byorg.web3d.util.IconLoader

public class IconLoader
extends java.lang.Object

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

Version:
$Revision: 1.5 $
Author:
Justin Couch

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

Constructor Detail

IconLoader

public IconLoader()
Method Detail

loadIcon

public static javax.swing.Icon loadIcon(java.lang.String name)
Load an icon for the named node type. Looks in the classpath for it in the images/ directory.

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

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium