org.nakedobjects.plugins.dnd.viewer.image
Class ImageFactory
java.lang.Object
org.nakedobjects.plugins.dnd.viewer.image.ImageFactory
public class ImageFactory
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageFactory
public ImageFactory(TemplateImageLoader imageLoader)
getInstance
public static ImageFactory getInstance()
loadIcon
public Image loadIcon(NakedObjectSpecification specification,
int iconHeight,
Color tint)
loadIcon
public Image loadIcon(java.lang.String name,
int height,
Color tint)
- Loads an icon of the specified size, and with the specified tint. If color is null then no tint is
applied.
loadDefaultIcon
public Image loadDefaultIcon(int height,
Color tint)
- Loads the fall back icon image, for use when no specific image can be found
loadImage
public Image loadImage(java.lang.String path)
- Load an image with the given name.
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.