Class RetinaImageIcon

All Implemented Interfaces:
ResizableIcon, Serializable, Cloneable, Accessible, Icon

@OpenApiAll public class RetinaImageIcon extends ResizableIconImageIcon
Retina friendly image icon implementation. Icon(and image returned by this icon) is twice smaller then the wrapped icon itself. Wrapped icon is used for painting. On paint Graphics is scaled down by retina scale factor and wrapped icon is painted.
See Also:
  • Constructor Details

    • RetinaImageIcon

      public RetinaImageIcon(ResizableIcon icon)
      Constructor. Scales down given icon by retina factor.
      Parameters:
      icon - given icon
    • RetinaImageIcon

      public RetinaImageIcon(ResizableIcon icon, int width, int height)
      Constructor. Scales down given icon to the given width and height.
      Parameters:
      icon - given icon
    • RetinaImageIcon

      public RetinaImageIcon(Image image, int width, int height)
      Constructor. Scales down given icon to the given width and height.
      Parameters:
      image - given image
    • RetinaImageIcon

      public RetinaImageIcon(Image image)
      Constructor. Scales down given image by retina factor.
      Parameters:
      image - given image
  • Method Details