Package org.teamapps.icons.spi
Interface IconLoader<ICON extends Icon<ICON,?>>
- Type Parameters:
ICON- The icon class this encoder can handle.
- All Known Implementing Classes:
CompositeIconLoader
public interface IconLoader<ICON extends Icon<ICON,?>>
Loads icons, providing them in binary form.
-
Method Summary
Modifier and Type Method Description IconResourceloadIcon(ICON icon, int size, IconLoaderContext context)Loads an icon.
-
Method Details
-
loadIcon
Loads an icon.The specified icon MUST have a style set (unless the STYLE type is
Void). Callers need to ensure this!Implementations MAY therefore assume the icon's to be styled.
- Parameters:
size- The size of the requested icon.- Returns:
- The icon in binary form and type and size of the icon (as
IconResource), or null, if the icon could not be loaded.
-