|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.virion.jam.util.IconUtils
public class IconUtils
Constructor Summary | |
---|---|
IconUtils()
|
Method Summary | |
---|---|
static Icon |
brighten(Icon icon)
Returns a slightly brighter version of the icon. |
static Icon |
darken(Icon icon)
Returns a slightly darker version of the icon. |
static BufferedImage |
getBufferedImage(Class resourceClass,
String name)
|
static BufferedImage |
getBufferedImage(String name)
|
static BufferedImage |
getBufferedImageFromIcon(Icon icon)
Creates a buffered image from an icon. |
static Icon |
getIcon(Class resourceClass,
String name)
|
static Icon |
getIcon(String name)
|
static Image |
getImage(Class resourceClass,
String name)
|
static Image |
getImage(String name)
|
static Image |
getImageFromIcon(Icon icon)
Creates an image from an icon. |
static Icon |
gray(Icon icon)
Returns a grayed version of the icon. |
static Icon |
resize(Icon icon,
int width,
int height)
Resizes an icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconUtils()
Method Detail |
---|
public static Image getImage(String name)
public static Image getImage(Class resourceClass, String name)
public static BufferedImage getBufferedImage(String name)
public static BufferedImage getBufferedImage(Class resourceClass, String name)
public static Icon getIcon(String name)
public static Icon getIcon(Class resourceClass, String name)
public static Icon brighten(Icon icon)
public static Icon darken(Icon icon)
public static Icon gray(Icon icon)
public static Icon resize(Icon icon, int width, int height)
public static Image getImageFromIcon(Icon icon)
public static BufferedImage getBufferedImageFromIcon(Icon icon)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |