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
ConstructorDescriptionImageIconWrapper
(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 Image
Deprecated, for removal: This API element is subject to removal in a future version.Get the base icon image to be transformed in ImageIconprotected ImageIcon
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.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.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, 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.int
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 icon reference nameDeprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
setDescription
(String description) Deprecated, for removal: This API element is subject to removal in a future version.void
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.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:FileBasedIcon
Get the name of the image which in most cases will be the associated data file path.- Specified by:
getFilename
in 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:
getAccessibleContext
in interfaceAccessible
- Overrides:
getAccessibleContext
in classImageIcon
-
getDescription
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getDescription
in classImageIcon
-
getIconHeight
public int getIconHeight()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIconHeight
in interfaceIcon
- Overrides:
getIconHeight
in classImageIcon
-
getIconWidth
public int getIconWidth()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIconWidth
in interfaceIcon
- Overrides:
getIconWidth
in classImageIcon
-
getImageLoadStatus
public int getImageLoadStatus()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getImageLoadStatus
in classImageIcon
-
getImageObserver
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getImageObserver
in 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:
setDescription
in 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