|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anthonyeden.lib.util.IconManager
The IconManager provides a central location for loading and caching Icons loaded from the class loader as resources.
Constructor Summary | |
IconManager()
Default constructor. |
|
IconManager(java.lang.String basePath)
Construct an IconManager with the given base path. |
Method Summary | |
java.lang.String |
getBasePath()
Get the base path for finding icons. |
static java.lang.String |
getDefaultBasePath()
Get the default base path for loading icons. |
javax.swing.Icon |
getIcon(java.lang.String path)
Get the icon at the given path. |
protected static java.util.Map |
getIcons()
Get a Map of all cached icons. |
void |
setBasePath(java.lang.String basePath)
Set the base path for finding icons. |
static void |
setDefaultBasePath(java.lang.String _defaultBasePath)
Set the default base path for loading icons. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IconManager()
getDefaultBasePath()
method.
public IconManager(java.lang.String basePath)
basePath
- The base pathMethod Detail |
public java.lang.String getBasePath()
public void setBasePath(java.lang.String basePath)
basePath
- The base pathpublic javax.swing.Icon getIcon(java.lang.String path)
public static java.lang.String getDefaultBasePath()
path
argument of getIcon
if the base path of the current
IconManager instance is not set. By default the value is an
empty String.
public static void setDefaultBasePath(java.lang.String _defaultBasePath)
path
argument of getIcon
if the base path of the current
IconManager instance is not set. By default the value is an
empty String.
_defaultBasePath
- The default base pathprotected static java.util.Map getIcons()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |