java.lang.Object
javax.ide.util.IconDescription
- public abstract class IconDescription
- extends java.lang.Object
The description of an icon. An icon is specified either as a key lookup
in a resource file which resolves to a resource path relative to the resource
file, or an absolute resource path.
Use the createPathInstance( ClassLoader, String )
55 or
createResourceInstance( ClassLoader, String, String)
55 factory
methods to create an instance of this class. To retrieve the URL of the
icon, use getURL()
55 . This URL is normally a resource (i.e. classpath)
URL, suitable for use when constructing an ImageIcon or other
toolkit specific image type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_url
private java.net.URL _url
IconDescription
private IconDescription()
createInstance
public static IconDescription createInstance(java.net.URL url)
- Create an instance that wraps the specified icon URL.
createResourceInstance
public static IconDescription createResourceInstance(java.lang.ClassLoader loader,
java.lang.String bundleClass,
java.lang.String key)
- Create an instance of IconDescription based on a resource key
lookup.
createPathInstance
public static IconDescription createPathInstance(java.lang.ClassLoader loader,
java.lang.String path)
- Create an instance of IconDescription based on a direct icon
path in the manifest file.
resolveURL
protected abstract java.net.URL resolveURL()
throws MissingIconException
- Resolve the URL for this instance of IconDescription.
getURL
public java.net.URL getURL()
throws MissingIconException
- Get the resolved URL of the icon.