public class IconRegistry extends Object
Gif16EclipseIconMap
Modifier and Type | Method and Description |
---|---|
static Icon |
getDisabledIcon(IconId id)
Returns the disabled version of the icon specified by the given ID.
|
static Icon |
getIcon(IconId id)
Returns the icon specified by the given ID.
|
static Dimension |
getIconDimension()
Returns the size of the icons contained in the icon map.
|
static IIconMap |
getIconMap()
Returns the icon map that is currently being used by the registry to
lookup and store icons.
|
static Image |
getImage(IconId id)
Returns the image specified by the given ID.
|
static void |
setIcon(IconId id,
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.
|
public static Icon getIcon(IconId id)
id
- the icon IDpublic static Icon getDisabledIcon(IconId id)
id
- the icon IDpublic static Image getImage(IconId id)
id
- the image IDpublic static void setIcon(IconId id, 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
- public static Dimension getIconDimension()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.