Package jam.util
Class IconUtils
java.lang.Object
jam.util.IconUtils
- Author:
- rambaut Date: Jul 29, 2004 Time: 10:12:49 AM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Icon
Returns a slightly brighter version of the icon.static 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
static Icon
static Image
static Image
static Image
getImageFromIcon
(Icon icon) Creates an image from an icon.static Icon
Returns a grayed version of the icon.static Icon
Resizes an icon.
-
Constructor Details
-
IconUtils
public IconUtils()
-
-
Method Details
-
getImage
- Returns:
- a named image from file or resource bundle.
-
getImage
- Returns:
- a named image from file or resource bundle.
-
getBufferedImage
- Returns:
- a named image from file or resource bundle.
-
getBufferedImage
- Returns:
- a named image from file or resource bundle.
-
getIcon
- Returns:
- a named icon from file or resource bundle.
-
getIcon
- Returns:
- a named icon from file or resource bundle.
-
brighten
Returns a slightly brighter version of the icon. -
darken
Returns a slightly darker version of the icon. -
gray
Returns a grayed version of the icon. -
resize
Resizes an icon. -
getImageFromIcon
Creates an image from an icon. -
getBufferedImageFromIcon
Creates a buffered image from an icon.
-