|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.viewer.lightweight.util.ImageFactory
| Method Summary | |
Icon |
createIcon(java.lang.String name,
int size)
Creates a flyweight Icon object of the specified size. |
static ImageFactory |
getImageFactory()
|
Icon |
loadImage(java.lang.String path)
Load a java.awt.Image object using the file path path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ImageFactory getImageFactory()
public final Icon createIcon(java.lang.String name,
int size)
public Icon loadImage(java.lang.String path)
path. This method attempts to
load the image from the jar/zip file this class was loaded from ie, your application, and then from
the file system as a file if can't be found as a resource.
If neither method works the default image is returned.
Class.getResource(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||