Package com.nomagic.ui
Class ResizableIconImageIcon
java.lang.Object
javax.swing.ImageIcon
com.nomagic.ui.ScalableImageIcon
com.nomagic.ui.ResizableIconImageIcon
- All Implemented Interfaces:
ResizableIcon
,Serializable
,Cloneable
,Accessible
,Icon
- Direct Known Subclasses:
RetinaImageIcon
,SquareIcon
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:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructorResizableIconImageIcon
(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
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getImageLoadStatus, getImageObserver, loadImage, setDescription, setImageObserver, toString
-
Constructor Details
-
ResizableIconImageIcon
Constructor- Parameters:
icon
- wrapped icon
-
ResizableIconImageIcon
Constructor- Parameters:
icon
- wrapped iconwidth
- icon widthheight
- icon height
-