Package resources.icons
Class ImageIconWrapper
java.lang.Object
javax.swing.ImageIcon
resources.icons.ImageIconWrapper
- All Implemented Interfaces:
Serializable,Accessible,Icon,FileBasedIcon
- Direct Known Subclasses:
DisabledImageIconWrapper,ScaledImageIconWrapper
@Deprecated(forRemoval=true,
since="11")
public class ImageIconWrapper
extends ImageIcon
implements FileBasedIcon
Deprecated, for removal: This API element is subject to removal in a future version.
ImageIconWrapper provides the ability to instantiate
an ImageIcon with delayed loading. In addition to delayed loading
it has the added benefit of allowing the use of static initialization
of ImageIcons without starting the Swing thread which can cause
problems when running headless.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImageIconWrapper(byte[] imageBytes, String imageName) Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified image byte array (seeToolkit.createImage(byte[]))ImageIconWrapper(Image image, String imageName) Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified imageImageIconWrapper(URL url) Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified resource URLImageIconWrapper(Icon icon) Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified icon which may require transformation into ImageIcon -
Method Summary
Modifier and TypeMethodDescriptionprotected final ImageDeprecated, for removal: This API element is subject to removal in a future version.Get the base icon image to be transformed in ImageIconprotected ImageIconDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the name of the image which in most cases will be the associated data file path.intDeprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.getImage()Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get icon reference nameDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetDescription(String description) Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class javax.swing.ImageIcon
loadImage, setImageObserver
-
Constructor Details
-
ImageIconWrapper
Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified image byte array (seeToolkit.createImage(byte[]))- Parameters:
imageBytes- image bytesimageName- image reference name
-
ImageIconWrapper
Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified image- Parameters:
image- icon imageimageName- image reference name
-
ImageIconWrapper
Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified icon which may require transformation into ImageIcon- Parameters:
icon- the icon
-
ImageIconWrapper
Deprecated, for removal: This API element is subject to removal in a future version.Construct wrapped ImageIcon based upon specified resource URL- Parameters:
url- icon image resource URL
-
-
Method Details
-
getFilename
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:FileBasedIconGet the name of the image which in most cases will be the associated data file path.- Specified by:
getFilenamein interfaceFileBasedIcon- Returns:
- icon name/path
-
getImageName
Deprecated, for removal: This API element is subject to removal in a future version.Get icon reference name- Returns:
- icon name
-
getImage
Deprecated, for removal: This API element is subject to removal in a future version. -
getAccessibleContext
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAccessibleContextin interfaceAccessible- Overrides:
getAccessibleContextin classImageIcon
-
getDescription
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getDescriptionin classImageIcon
-
getIconHeight
public int getIconHeight()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIconHeightin interfaceIcon- Overrides:
getIconHeightin classImageIcon
-
getIconWidth
public int getIconWidth()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIconWidthin interfaceIcon- Overrides:
getIconWidthin classImageIcon
-
getImageLoadStatus
public int getImageLoadStatus()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getImageLoadStatusin classImageIcon
-
getImageObserver
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getImageObserverin classImageIcon
-
paintIcon
Deprecated, for removal: This API element is subject to removal in a future version. -
setDescription
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setDescriptionin classImageIcon
-
setImage
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
createIconBaseImage
Deprecated, for removal: This API element is subject to removal in a future version.Get the base icon image to be transformed in ImageIcon- Returns:
- the base icon image to be transformed in ImageIcon
-
createImageIcon
Deprecated, for removal: This API element is subject to removal in a future version.
-
LazyImageIcon:UrlImageIcon,DerivedImageIcon,BytesImageIcon,DisabledImageIcon, andScaledImageIcon. Pick the one that matches the constructor that was being used to create an ImageIconWrapper