|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.jonclark.gui.SwingResourceManager
public class SwingResourceManager
Utility class for managing resources such as colors, fonts, images, etc. This class may be freely distributed as part of any application or plugin.
Copyright (c) 2003 - 2004, Instantiations, Inc.
All Rights Reserved
| Constructor Summary | |
|---|---|
SwingResourceManager()
|
|
| Method Summary | |
|---|---|
static void |
clearImages(String section)
Clear cached images in specified section |
static ImageIcon |
getIcon(Class clazz,
String path)
Returns an icon stored in the file at the specified path relative to the specified class |
static ImageIcon |
getIcon(Image image)
Returns an icon based on the specified image |
static ImageIcon |
getIcon(String path)
Returns an icon stored in the file at the specified path |
static ImageIcon |
getIcon(String section,
String path)
Returns an icon stored in the file at the specified path |
static Image |
getImage(Class clazz,
String path)
Returns an image stored in the file at the specified path relative to the specified class |
static Image |
getImage(String path)
Returns an image stored in the file at the specified path |
static Image |
getImage(String section,
String path)
Returns an image stored in the file at the specified path |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwingResourceManager()
| Method Detail |
|---|
public static Image getImage(Class clazz,
String path)
clazz - Class The class relative to which to find the imagepath - String The path to the image file
public static Image getImage(String path)
path - String The path to the image file
public static Image getImage(String section,
String path)
section - String The storage section in the cachepath - String The path to the image file
public static void clearImages(String section)
section - the section do clear
public static ImageIcon getIcon(Class clazz,
String path)
clazz - Class The class relative to which to find the iconpath - String The path to the icon file
public static ImageIcon getIcon(String path)
path - String The path to the icon file
public static ImageIcon getIcon(String section,
String path)
section - String The storage section in the cachepath - String The path to the icon file
public static ImageIcon getIcon(Image image)
image - Image The original image
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||