Class ScaledImageIcon
java.lang.Object
javax.swing.ImageIcon
resources.icons.LazyImageIcon
resources.icons.DerivedImageIcon
resources.icons.ScaledImageIcon
- All Implemented Interfaces:
Serializable, Accessible, Icon, FileBasedIcon
LazyImageIcon that creates a scaled version of an icon- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ImageIcon
ImageIcon.AccessibleImageIcon -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionScaledImageIcon(Icon baseIcon, int width, int height) Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size.ScaledImageIcon(Icon baseIcon, int width, int height, int hints) Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size -
Method Summary
Methods inherited from class DerivedImageIcon
createImage, getSourceIcon, sourceIconChangedMethods inherited from class LazyImageIcon
getAccessibleContext, getDescription, getFilename, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, paintIcon, setDescription, setImage, toStringMethods inherited from class ImageIcon
loadImage, setImageObserver
-
Constructor Details
-
ScaledImageIcon
Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size. The rendering hints ofImage.SCALE_AREA_AVERAGINGwill be applied.- Parameters:
baseIcon- base iconwidth- new icon widthheight- new icon height
-
ScaledImageIcon
Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size- Parameters:
baseIcon- base iconwidth- new icon widthheight- new icon heighthints-RenderingHintsused byGraphics2D
-
-
Method Details
-
createImageIcon
- Overrides:
createImageIconin classDerivedImageIcon
-