Interface DerivableIcon<T extends Icon>

All Superinterfaces:
Icon
All Known Implementing Classes:
CustomThemedIcon, DarkSVGIcon, DerivableImageIcon, TextIcon, ThemedSVGIcon

public interface DerivableIcon<T extends Icon> extends Icon
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
     
    derive​(int width, int height)
    Derive a new icon with the specified size.

    Methods inherited from interface javax.swing.Icon

    getIconHeight, getIconWidth, paintIcon
  • Method Details

    • derive

      T derive(int width, int height)
      Derive a new icon with the specified size.
      Parameters:
      width - the new width
      height - the new height.
      Returns:
      the derived icon.
    • copy

      default T copy()