Package org.teamapps.icons.spi
Interface IconDecoder<ICON extends Icon<ICON,?>>
-
- Type Parameters:
ICON- The icon class this provider will return.
- All Known Implementing Classes:
CompositeIconDecoder
public interface IconDecoder<ICON extends Icon<ICON,?>>Decodes icons from an encoded iconStrings such as they are produced by theIconEncoder.Implementations MUST provide a default constructor!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICONdecodeIcon(java.lang.String encodedIconString, IconDecoderContext context)Decodes an icon from an encoded iconString.
-
-
-
Method Detail
-
decodeIcon
ICON decodeIcon(java.lang.String encodedIconString, IconDecoderContext context)
Decodes an icon from an encoded iconString.Implementations MUST return an icon, even if the requested size is not available. In this case, a larger or smaller icon should be returned. The resizing will be done elsewhere.
Implementations MUST support unstyled icons.
- Parameters:
encodedIconString- The encoded icon String as produced by the correspondingIconEncoder.- Returns:
- The icon.
-
-