|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectImageIconX
public class ImageIconX
Image icon utilities.
Thread safe.
| Method Summary | |
|---|---|
static ImageIcon |
tryCreate(String filename,
int size)
Tries to create an image icon from a file. |
static ImageIcon |
tryCreate(String filename,
int width,
int height)
Tries to create an image icon from a file. |
static ImageIcon |
tryCreate(URL url,
int size)
Tries to create an image icon from a URL. |
static ImageIcon |
tryCreate(URL url,
int width,
int height)
Tries to create an image icon from a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ImageIcon tryCreate(String filename,
int size)
filename - of imagesize - square size expected for the image
defaultImage scaled to the expected size
public static ImageIcon tryCreate(String filename,
int width,
int height)
filename - of imagewidth - expected for the imageheight - expected for the image
defaultImage scaled to the expected size
public static ImageIcon tryCreate(URL url,
int size)
url - of image, or nullsize - square size expected for the image
defaultImage scaled to the expected size
public static ImageIcon tryCreate(URL url,
int width,
int height)
url - of image, or nullwidth - expected for the imageheight - expected for the image
defaultImage scaled to the expected size
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||