|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ezware.common.Icons
public final class Icons
Utility class for icon manipulation Created on Mar 1, 2010
| Method Summary | |
|---|---|
static java.awt.Image |
asImage(javax.swing.Icon icon)
Converts any icon to image |
static java.awt.Image |
asImage(javax.swing.Icon icon,
int newWidth,
int newHeight)
Converts any icon to an image with specified width and height |
static javax.swing.Icon |
scale(javax.swing.Icon icon,
int newWidth,
int newHeight)
Scales any icon to specified width and height |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final java.awt.Image asImage(javax.swing.Icon icon)
icon - icon to convert
public static final java.awt.Image asImage(javax.swing.Icon icon,
int newWidth,
int newHeight)
icon - icon to convertnewWidth - new image widthnewHeight - new image height
public static final javax.swing.Icon scale(javax.swing.Icon icon,
int newWidth,
int newHeight)
icon - icon to scalenewWidth - new icon widthnewHeight - new icon height
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||