org.xulux.guilayer.swing.util
Interface ImageLoaderInterface

All Known Implementing Classes:
JimiImageLoader

public interface ImageLoaderInterface

A simple interface to make sure there are not classloader issues when jimi is not on the classpath. It also leaves open pluggable image libraries

Version:
$Id: ImageLoaderInterface.java,v 1.1 2005/12/18 12:58:22 mvdb Exp $
Author:
Martin van den Bemt

Method Summary
 javax.swing.ImageIcon getIcon(java.net.URL url)
          Returns the specified icon
 java.awt.Image getImage(java.net.URL url)
          Returns the specified image
 boolean isUsable()
          Specifies if this imageloader is usable.
 

Method Detail

getImage

java.awt.Image getImage(java.net.URL url)
Returns the specified image

Parameters:
url - the url to load if from
Returns:
the image

getIcon

javax.swing.ImageIcon getIcon(java.net.URL url)
Returns the specified icon

Parameters:
url - the url to load if from
Returns:
the imageIcon

isUsable

boolean isUsable()
Specifies if this imageloader is usable. Eg checking if the image classes are on the classpath,etc

Returns:
false if not usable.


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.