Package resources.icons
Class UrlImageIcon
java.lang.Object
javax.swing.ImageIcon
resources.icons.LazyImageIcon
resources.icons.UrlImageIcon
- All Implemented Interfaces:
Serializable
,Accessible
,Icon
,FileBasedIcon
LazyImageIcon
that is created from a URL to an icon file.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ImageIcon
ImageIcon.AccessibleImageIcon
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class resources.icons.LazyImageIcon
getAccessibleContext, getDescription, getFilename, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, paintIcon, setDescription, setImage, sourceIconChanged, toString
Methods inherited from class javax.swing.ImageIcon
loadImage, setImageObserver
-
Constructor Details
-
UrlImageIcon
Constructor- Parameters:
path
- the path String used to create the URLurl
- theURL
to an icon resource file
-
-
Method Details
-
getUrl
Returns the URL that was used to create this icon- Returns:
- the URL that was used to create this icon
-
getOriginalPath
Returns the original path that was used to generate the URL (e.g. images/foo.png)- Returns:
- the original path that was used to generate the URL (e.g. images/foo.png)
-
createImageIcon
- Specified by:
createImageIcon
in classLazyImageIcon
-
createImage
-
hashCode
public int hashCode() -
equals
-