Interface IconLoader<ICON extends Icon<ICON,​STYLE>,​STYLE>

Type Parameters:
ICON - The icon class this encoder can handle.
STYLE - The style class these icons support.
All Known Implementing Classes:
CompositeIconLoader

public interface IconLoader<ICON extends Icon<ICON,​STYLE>,​STYLE>
Loads icons, providing them in binary form.
  • Method Details

    • loadIcon

      IconResource loadIcon​(ICON icon, int size, IconLoaderContext context)
      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.