Package resources.icons
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 javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScaledImageIcon
(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 resources.icons.DerivedImageIcon
createImage, getSourceIcon, sourceIconChanged
Methods inherited from class resources.icons.LazyImageIcon
getAccessibleContext, getDescription, getFilename, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, paintIcon, setDescription, setImage, toString
Methods inherited from class javax.swing.ImageIcon
loadImage, setImageObserver
-
Constructor Details
-
ScaledImageIcon
Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size. The rendering hints ofImage.SCALE_AREA_AVERAGING
will 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
-RenderingHints
used byGraphics2D
-
-
Method Details
-
createImageIcon
- Overrides:
createImageIcon
in classDerivedImageIcon
-