|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.ResourceManager
A class with static methods to get GUI resources as icons.
Field Summary | |
static String |
RESOURCES_PATH
Store the path where to find resources for the GUI. |
Constructor Summary | |
ResourceManager()
|
Method Summary | |
static ImageIcon |
createIcon(String path)
Creates an icon from a path string. |
static void |
defineResource(String name,
String path)
Define a resource. |
static ImageIcon |
getIcon(String resource)
Build an icon using a resource as the image. |
static ImageIcon |
getIconResource(String name)
Build an icon using a named resource as the image. |
static String |
getResource(String name)
|
static InputStream |
getResourceAsStream(String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String RESOURCES_PATH
Constructor Detail |
public ResourceManager()
Method Detail |
public static ImageIcon createIcon(String path)
path
- the path of the icon (absolute or accessible through
the classpath)public static void defineResource(String name, String path)
name
- the short name of the resourcepath
- the full path to the resourcegetIcon(String)
public static String getResource(String name)
public static InputStream getResourceAsStream(String name)
public static ImageIcon getIcon(String resource)
resource
- the resource name (full path)getIconResource(String)
,
defineResource(String,String)
public static ImageIcon getIconResource(String name)
name
- the name of the resourcegetIcon(String)
,
defineResource(String,String)
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |