|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.japi.swing.IconManager
public final class IconManager
Class to handle icons.
Default size is 16.
Instances must have an associated ClassLoader, otherwise several methods will not work properly but throw a NullPointerException instead.
So if you do not provide a ClassLoader, be sure the class you provide has one, or if you use the no-arg constructor resp. the default instance, be
sure the IconManager class itself was loaded with some ClassLoader other than null
.
Constructor Summary | |
---|---|
IconManager()
Create a IconManager. |
|
IconManager(Class<?> clazz)
Create an IconManager. |
|
IconManager(ClassLoader cl)
Create an IconManager. |
Method Summary | |
---|---|
int[] |
getAvailableSizes()
Return the available sizes for icons. |
static IconManager |
getDefaultIconManager()
Get the default IconManager. |
Icon |
getIcon(String s)
Load an icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconManager()
public IconManager(Class<?> clazz)
clazz
- Class to get ClassLoader for IconManagerpublic IconManager(ClassLoader cl)
cl
- ClassLoader to create IconManager forMethod Detail |
---|
public static IconManager getDefaultIconManager()
public int[] getAvailableSizes()
@Nullable public Icon getIcon(String s)
s
- icon name, like "general/About" or "navigation/Forward"
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |