ca.nengo.config
Class IconRegistry
java.lang.Object
ca.nengo.config.IconRegistry
public class IconRegistry
- extends java.lang.Object
A registry of graphical Icons that can be used for displaying Property values.
- Author:
- Bryan Tripp
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static IconRegistry getInstance()
- Returns:
- Singleton instance
getIcon
public javax.swing.Icon getIcon(java.lang.Object o)
- Parameters:
o - An object
- Returns:
- An icon to use in displaying the given object
getIcon
public javax.swing.Icon getIcon(java.lang.Class c)
- Parameters:
c - Class of object
- Returns:
- An icon to use in displaying objects of the given class
setIcon
public void setIcon(java.lang.Class c,
javax.swing.Icon icon)
- Parameters:
c - A classicon - An Icon to use for objects of the given class
setIcon
public void setIcon(java.lang.Class c,
java.lang.String path)
- Parameters:
c - A classpath - Path to an image file from which to make an Icon for objects of the
given class