Package resources.icons
Class ScaledImageIconWrapper
- java.lang.Object
-
- javax.swing.ImageIcon
-
- resources.icons.ImageIconWrapper
-
- resources.icons.ScaledImageIconWrapper
-
- All Implemented Interfaces:
java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.Icon
,FileBasedIcon
public class ScaledImageIconWrapper extends ImageIconWrapper
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScaledImageIconWrapper(javax.swing.Icon baseIcon, int width, int height)
Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size.ScaledImageIconWrapper(javax.swing.Icon baseIcon, int width, int height, int hints)
Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.ImageIcon
createImageIcon()
-
Methods inherited from class resources.icons.ImageIconWrapper
createIconBaseImage, getAccessibleContext, getDescription, getFilename, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageName, getImageObserver, paintIcon, setDescription, setImage, toString
-
-
-
-
Constructor Detail
-
ScaledImageIconWrapper
public ScaledImageIconWrapper(javax.swing.Icon baseIcon, int width, int height)
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
-
ScaledImageIconWrapper
public ScaledImageIconWrapper(javax.swing.Icon baseIcon, int width, int height, int hints)
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 Detail
-
createImageIcon
protected javax.swing.ImageIcon createImageIcon()
- Overrides:
createImageIcon
in classImageIconWrapper
-
-