|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xulux.guilayer.swing.util.JimiImageLoader
public class JimiImageLoader
Loads images using jimi, so also ico, xpm, etc is supported by Xulux. This is wrapped up in an interface so you don't get any strange exceptions when jimi is not there. This dependency is mainly there for jdk1.3 or lower. As from jdk1.4 images will be processed using the core.
Constructor Summary | |
---|---|
JimiImageLoader()
Constructor for JimiImageLoader. |
Method Summary | |
---|---|
javax.swing.ImageIcon |
getIcon(java.net.URL url)
Returns the specified icon |
java.awt.Image |
getImage(java.net.URL url)
For now we don't provide any exceptions or logging in case a resrouce is null. |
boolean |
isUsable()
Specifies if this imageloader is usable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JimiImageLoader()
Method Detail |
---|
public java.awt.Image getImage(java.net.URL url)
getImage
in interface ImageLoaderInterface
url
- the url to load if from
org.xulux.nyx.swing.util.ImageLoaderInterface#getImage(java.net.URL)
public javax.swing.ImageIcon getIcon(java.net.URL url)
ImageLoaderInterface
getIcon
in interface ImageLoaderInterface
url
- the url to load if from
org.xulux.nyx.swing.util.ImageLoaderInterface#getIcon(java.net.URL)
public boolean isUsable()
ImageLoaderInterface
isUsable
in interface ImageLoaderInterface
org.xulux.nyx.swing.util.ImageLoaderInterface#isUsable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |