Class CompositeIconDecoder

java.lang.Object
org.teamapps.icons.composite.CompositeIconDecoder
All Implemented Interfaces:
IconDecoder<CompositeIcon>

public class CompositeIconDecoder extends Object implements IconDecoder<CompositeIcon>
  • Constructor Details

    • CompositeIconDecoder

      public CompositeIconDecoder()
  • Method Details

    • decodeIcon

      public CompositeIcon decodeIcon(String encodedIconString, IconDecoderContext context)
      Description copied from interface: IconDecoder
      Decodes an icon from an encoded icon String.

      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.

      Specified by:
      decodeIcon in interface IconDecoder<CompositeIcon>
      Parameters:
      encodedIconString - The encoded icon String as produced by the corresponding IconEncoder.
      Returns:
      The icon.