Class ResizableIconImageIcon

  • All Implemented Interfaces:
    ResizableIcon, java.io.Serializable, java.lang.Cloneable, javax.accessibility.Accessible, javax.swing.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:
    Serialized Form
    • Constructor Detail

      • 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
      • ResizableIconImageIcon

        ResizableIconImageIcon​(java.awt.Image image)
      • ResizableIconImageIcon

        ResizableIconImageIcon​(java.net.URL url)