com.dlsc.flexgantt.icons
Interface IIconMap

All Known Implementing Classes:
AbstractIconMap, Gif16IconMap

public interface IIconMap

An icon map provides icons based on an icon ID. Icon maps can be passed to the IconRegistry where the registry will use it to lookup icons that other framework classes ask for. The icon map and the icon registry are strictly for internal use of the framework. Applications that use the framework need to implement their own mechanism to load and lookup icons.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
IconRegistry.setIconMap(IIconMap)

Method Summary
 javax.swing.Icon getIcon(IconId id)
          Returns an icon for the given ID.
 void setIcon(IconId id, javax.swing.Icon icon)
          Sets an icon for the given icon ID.
 

Method Detail

setIcon

void setIcon(IconId id,
             javax.swing.Icon icon)
Sets an icon for the given icon ID.

Parameters:
id - the id of the icon
icon - the icon for the ID
Since:
1.0

getIcon

javax.swing.Icon getIcon(IconId id)
Returns an icon for the given ID.

Parameters:
id - the ID for which to return an icon
Returns:
an icon for the given ID
Since:
1.0