Package resources.icons
Class LazyImageIcon
java.lang.Object
javax.swing.ImageIcon
resources.icons.LazyImageIcon
- All Implemented Interfaces:
Serializable,Accessible,Icon,FileBasedIcon
- Direct Known Subclasses:
BytesImageIcon,DerivedImageIcon,UrlImageIcon
LazyImageIcon 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ImageIconGet the name of the image which in most cases will be the associated data file path.intintgetImage()intvoidvoidsetDescription(String description) voidprotected booleantoString()Methods inherited from class javax.swing.ImageIcon
loadImage, setImageObserver
-
Constructor Details
-
LazyImageIcon
-
-
Method Details
-
createImageIcon
-
sourceIconChanged
protected boolean sourceIconChanged() -
getFilename
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
-
getImage
-
getAccessibleContext
- Specified by:
getAccessibleContextin interfaceAccessible- Overrides:
getAccessibleContextin classImageIcon
-
getDescription
- Overrides:
getDescriptionin classImageIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon- Overrides:
getIconHeightin classImageIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon- Overrides:
getIconWidthin classImageIcon
-
getImageLoadStatus
public int getImageLoadStatus()- Overrides:
getImageLoadStatusin classImageIcon
-
getImageObserver
- Overrides:
getImageObserverin classImageIcon
-
paintIcon
-
setDescription
- Overrides:
setDescriptionin classImageIcon
-
setImage
-
toString
-