pl.edu.agh.cast.importer.wizard.utils
Class Images

java.lang.Object
  extended by pl.edu.agh.cast.importer.wizard.utils.Images

public class Images
extends Object

Wrapper for the ImageRegistry, which maintains a mapping between image names and image objects used within the import wizard.

Author:
AGH CAST Team

Field Summary
static String CLEAR
          Import clear icon file name.
static String ERROR
          Import error icon file name.
static String WARNING
          Import warning icon file name.
 
Constructor Summary
Images()
          The default constructor.
 
Method Summary
 org.eclipse.swt.graphics.Image get(String descriptorId)
          Delegate to the ImageRegistry.get(String) method.
 org.eclipse.jface.resource.ImageDescriptor getDescriptor(String descriptorId)
          Delegate to the ImageRegistry.getDescriptor(String) method.
static Images getInstance()
          Retrieves the only instance of the Images class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLEAR

public static final String CLEAR
Import clear icon file name.

See Also:
Constant Field Values

WARNING

public static final String WARNING
Import warning icon file name.

See Also:
Constant Field Values

ERROR

public static final String ERROR
Import error icon file name.

See Also:
Constant Field Values
Constructor Detail

Images

public Images()
The default constructor.

Method Detail

getInstance

public static Images getInstance()
Retrieves the only instance of the Images class.

Returns:
the only instance.

getDescriptor

public org.eclipse.jface.resource.ImageDescriptor getDescriptor(String descriptorId)
Delegate to the ImageRegistry.getDescriptor(String) method. Returns the descriptor associated with the given descriptor id in this registry, or null if none.

Parameters:
descriptorId - the descriptor id
Returns:
the descriptor, or null if none

get

public org.eclipse.swt.graphics.Image get(String descriptorId)
Delegate to the ImageRegistry.get(String) method. Returns the image associated with the given descriptor id in this registry, or null if none.

Parameters:
descriptorId - the descriptor id
Returns:
the image, or null if none


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.