Package com.nomagic.ui
Class ResizableIconImageIcon
- java.lang.Object
-
- javax.swing.ImageIcon
-
- com.nomagic.ui.ScalableImageIcon
-
- com.nomagic.ui.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 Summary
Constructors Constructor Description ResizableIconImageIcon(ResizableIcon icon)
ConstructorResizableIconImageIcon(ResizableIcon icon, int width, int height)
Constructor
-
Method Summary
-
Methods inherited from class com.nomagic.ui.ScalableImageIcon
clone, create, doNotScale, getIconHeight, getIconWidth, getImage, getLocation, getURL, paintIcon, paintIcon, setImage, toImageIcon, toImageIcon, toImageIcon
-
-
-
-
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 iconwidth
- icon widthheight
- icon height
-
-