Class ResizableIconImageIcon

All Implemented Interfaces:
ResizableIcon, Serializable, Cloneable, Accessible, Icon
Direct Known Subclasses:
RetinaImageIcon, SquareIcon

@OpenApiAll public class ResizableIconImageIcon extends ScalableImageIcon
Image icon which wraps other icon and provides an image for a wrapped icon.

Provided image is HiDPI/Retina friendly. On Mac special instance of java.awt.Image (sun.awt.image.MultiResolutionToolkitImage) is returned which supports multi-resolution.

See Also:
  • Constructor Details

    • ResizableIconImageIcon

      public ResizableIconImageIcon(ResizableIcon icon)
      Constructor
      Parameters:
      icon - wrapped icon
    • ResizableIconImageIcon

      public ResizableIconImageIcon(ResizableIcon icon, int width, int height)
      Constructor
      Parameters:
      icon - wrapped icon
      width - icon width
      height - icon height