|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.icons.IconRegistry
public class IconRegistry
The icon registry provides access to the icon set used by the framework. An internal icon map manages the icons. The map is pluggable in order to support the easy replacement of the entire icon set. The registry is for internal use only. It can not be used to store and retrieve application-specific icons.
Gif16IconMap
Method Summary | |
---|---|
static javax.swing.Icon |
getIcon(IconId id)
Returns the icon specified by the given ID. |
static IIconMap |
getIconMap()
Returns the icon map that is currently being used by the registry to lookup and store icons. |
static java.awt.Image |
getImage(IconId id)
Returns the image specified by the given ID. |
static void |
setIcon(IconId id,
javax.swing.Icon icon)
Specifies a new icon for the given ID. |
static void |
setIconMap(IIconMap iconMap)
Sets the icon map used by the registry to lookup and store icons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.swing.Icon getIcon(IconId id)
id
- the icon ID
public static java.awt.Image getImage(IconId id)
id
- the image ID
public static void setIcon(IconId id, javax.swing.Icon icon)
id
- the ID of the icon that will be replacedicon
- the new icon to use for the given IDpublic static IIconMap getIconMap()
public static void setIconMap(IIconMap iconMap)
iconMap
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |