Interface ImageRegistryService
-
- All Known Implementing Classes:
RAPImageRegistryService
,RCPImageRegistryService
public interface ImageRegistryService
TheImageRegistryService
allows to retrieve Images based on a Bundle and a path within or an URL. The images are loaded only once.- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.swt.graphics.Image
getImage(java.net.URL url)
Retrieve anImage
based on anURL
.org.eclipse.swt.graphics.Image
getImage(org.osgi.framework.Bundle bundle, java.lang.String path)
Retrieve anImage
based on a Bundle and a path within.
-
-
-
Method Detail
-
getImage
org.eclipse.swt.graphics.Image getImage(org.osgi.framework.Bundle bundle, java.lang.String path)
Retrieve anImage
based on a Bundle and a path within.- Parameters:
bundle
- the Bundle to get the image frompath
- the path to the image within the bundle- Returns:
- the loaded
Image
-
getImage
org.eclipse.swt.graphics.Image getImage(java.net.URL url)
Retrieve anImage
based on anURL
.- Parameters:
url
- theURL
to load the image from- Returns:
- the loaded
Image
-
-