Package org.csstudio.ui.util
Class ImageUtil
java.lang.Object
org.csstudio.ui.util.ImageUtil
Utility class, which provides access to images. Images returned by this utility are managed by a ImageRegistry and
must not explicitly be disposed, when they are not used anymore.
-
Method Summary
Modifier and TypeMethodDescriptionGets an Image for an image resource which is supposed to reside in the plugin with the specified pluginId under the specified path.getImageDescriptor
(String pluginId, String path) Gets an ImageDescriptor for an image resource which is supposed to reside in the plugin with the specified pluginId under the specified path.getImageDescriptorFromFile
(String fullPath) Gets an ImageDescriptor for an image resource which is supposed to reside in the plugin with the specified pluginId under the specified path.static ImageUtil
Gets the singleton instance.
-
Method Details
-
getInstance
Gets the singleton instance. -
getImageDescriptorFromFile
Gets an ImageDescriptor for an image resource which is supposed to reside in the plugin with the specified pluginId under the specified path.- Parameters:
fullPath
- the path- Returns:
- an ImageDescriptor or null
-
getImageDescriptor
Gets an ImageDescriptor for an image resource which is supposed to reside in the plugin with the specified pluginId under the specified path.- Parameters:
pluginId
- the ID of the plugin that contains the image resourcepath
- the path- Returns:
- an ImageDescriptor or null
-
getImage
Gets an Image for an image resource which is supposed to reside in the plugin with the specified pluginId under the specified path.- Parameters:
pluginId
- the ID of the plugin that contains the image resourcepath
- the path- Returns:
- an Image or null
-