|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.swingext.gui.IconFactory
public final class IconFactory
Creates and caches Icons from the given Resource location
Field Summary | |
---|---|
static int |
ICON_16
|
static int |
ICON_32
|
static int |
ICON_48
|
Method Summary | |
---|---|
static javax.swing.ImageIcon |
createIcon(java.lang.String path)
Create an ImageIcon from a path The icon is loaded from getClass().getResource(URL) |
static javax.swing.ImageIcon |
createIcon(java.lang.String path,
int type)
Create an ImageIcon from a path with a specific size If the loaded ImageIcon is not the size defined the icon will be scaled with Image.SCALE_SMOOTH
The icon is loaded from getClass().getResource(URL) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ICON_16
public static final int ICON_32
public static final int ICON_48
Method Detail |
---|
public static final javax.swing.ImageIcon createIcon(java.lang.String path)
The icon is loaded from getClass().getResource(URL)
path
- String, the path
public static final javax.swing.ImageIcon createIcon(java.lang.String path, int type)
If the loaded ImageIcon is not the size defined the icon will
be scaled with Image.SCALE_SMOOTH
The icon is loaded from getClass().getResource(URL)
path
- String, the pathint,
- the size of the Icon. You can use one of the defaults ICON_16|ICON_32|ICON_48, but
any value will work.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |