Class ImageManager


  • public class ImageManager
    extends java.lang.Object
    The image manager is an object returning an image or an image descriptor from a key. The keys are described in the ImagesConstants class and the associated properties file is ImageManager.properties.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageManager()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.swt.graphics.Image getImage​(java.lang.String pKey)
      Method which returns the image corresponding to the provided key.
      org.eclipse.jface.resource.ImageDescriptor getImageDescriptor​(java.lang.String pKey)
      Method which returns the image descriptor corresponding to the provided key.
      org.eclipse.jface.resource.ImageDescriptor getImageDescriptorFromPath​(java.lang.String pPath)
      Finds the image descriptor from the bundle relative path of the image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageManager

        public ImageManager()
        Default constructor.
    • Method Detail

      • getImage

        public org.eclipse.swt.graphics.Image getImage​(java.lang.String pKey)
        Method which returns the image corresponding to the provided key.
        Parameters:
        pKey - Key corresponding to the image to find
        Returns:
        image corresponding to the key, or null if the key doesn't exists or the bundle is null
      • getImageDescriptor

        public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor​(java.lang.String pKey)
        Method which returns the image descriptor corresponding to the provided key.
        Parameters:
        pKey - Key corresponding to the image to find
        Returns:
        image descriptor corresponding to the key, or null if the key doesn't exists or the bundle is null
      • getImageDescriptorFromPath

        public org.eclipse.jface.resource.ImageDescriptor getImageDescriptorFromPath​(java.lang.String pPath)
        Finds the image descriptor from the bundle relative path of the image.
        Parameters:
        pPath - the image path
        Returns:
        the image descriptor