org.nakedobjects.plugins.dnd.viewer.image
Class ImageFactory

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.image.ImageFactory

public class ImageFactory
extends java.lang.Object


Constructor Summary
ImageFactory(TemplateImageLoader imageLoader)
           
 
Method Summary
static ImageFactory getInstance()
           
 Image loadDefaultIcon(int height, Color tint)
          Loads the fall back icon image, for use when no specific image can be found
 Image loadIcon(NakedObjectSpecification specification, int iconHeight, Color tint)
           
 Image loadIcon(java.lang.String name, int height, Color tint)
          Loads an icon of the specified size, and with the specified tint.
 Image loadImage(java.lang.String path)
          Load an image with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFactory

public ImageFactory(TemplateImageLoader imageLoader)
Method Detail

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.