Class CompositeIconLoader

    • Constructor Detail

      • CompositeIconLoader

        public CompositeIconLoader()
    • Method Detail

      • loadIcon

        public IconResource loadIcon​(CompositeIcon icon,
                                     int size,
                                     IconLoaderContext context)
        Description copied from interface: IconLoader
        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.

        Specified by:
        loadIcon in interface IconLoader<CompositeIcon>
        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.