pl.edu.agh.cast.util
Class Images

java.lang.Object
  extended by pl.edu.agh.cast.util.Images

public final class Images
extends Object

Convenience class for storing references to image descriptors used by the README tool.

Author:
AGH CAST Team

Field Summary
static String COMMON_CHECKBOX
          Empty checkbox icon image filename.
static String COMMON_CHECKBOX_SELECTED
          Selected checkbox icon image filename.
static String CONNECTION
          Connection icon image filename.
static String DATA
          Data set icon image filename.
static String ENTITY_BIG
          Entity large icon image filename.
static String ENTITY_SMALL
          Entity small icon image filename.
static String FILE
          File icon image filename.
static String FILTER
          Filter icon image filename.
static String FIT_ZOOM
          Fit zoom icon image filename.
static String FOLDER
          Folder icon image filename.
static String GROUP
          Group icon image filename.
static String NODE
          Node icon image filename.
static String OTHER_FILE
          Other icon image filename.
static String PROJECT
          Project icon image filename.
static String TEMPLATE
          Template icon image filename.
static String TEMPLATES
          Templates icon image filename.
static String ZOOM_OUT
          Zoom out icon image filename.
 
Method Summary
 org.eclipse.swt.graphics.Image get(String descriptorId)
          Returns Image for given descriptor Id.
 org.eclipse.jface.resource.ImageDescriptor getDescriptor(String descriptorId)
          Returns ImageDescriptor with given Id.
 String getFriendlyName(String imageId)
          Deprecated. To be removed. Use NodeIconProvider.getFriendlyName() instead.
static Images getInstance()
          Returns single, shared instance of Images.
 void put(String descriptorId, String path)
          Puts image from given file into registry.
 void putDescriptor(String descriptorId, org.eclipse.jface.resource.ImageDescriptor descriptor)
          Puts ImageDescriptor into registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT

public static final String PROJECT
Project icon image filename.

See Also:
Constant Field Values

FILE

public static final String FILE
File icon image filename.

See Also:
Constant Field Values

FOLDER

public static final String FOLDER
Folder icon image filename.

See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
Template icon image filename.

See Also:
Constant Field Values

TEMPLATES

public static final String TEMPLATES
Templates icon image filename.

See Also:
Constant Field Values

OTHER_FILE

public static final String OTHER_FILE
Other icon image filename.

See Also:
Constant Field Values

GROUP

public static final String GROUP
Group icon image filename.

See Also:
Constant Field Values

NODE

public static final String NODE
Node icon image filename.

See Also:
Constant Field Values

CONNECTION

public static final String CONNECTION
Connection icon image filename.

See Also:
Constant Field Values

DATA

public static final String DATA
Data set icon image filename.

See Also:
Constant Field Values

ENTITY_BIG

public static final String ENTITY_BIG
Entity large icon image filename.

See Also:
Constant Field Values

ENTITY_SMALL

public static final String ENTITY_SMALL
Entity small icon image filename.

See Also:
Constant Field Values

FILTER

public static final String FILTER
Filter icon image filename.

See Also:
Constant Field Values

COMMON_CHECKBOX

public static final String COMMON_CHECKBOX
Empty checkbox icon image filename.

See Also:
Constant Field Values

COMMON_CHECKBOX_SELECTED

public static final String COMMON_CHECKBOX_SELECTED
Selected checkbox icon image filename.

See Also:
Constant Field Values

FIT_ZOOM

public static final String FIT_ZOOM
Fit zoom icon image filename.

See Also:
Constant Field Values

ZOOM_OUT

public static final String ZOOM_OUT
Zoom out icon image filename.

See Also:
Constant Field Values
Method Detail

getInstance

public static Images getInstance()
Returns single, shared instance of Images.

Returns:
single, shared instance of Images

getDescriptor

public org.eclipse.jface.resource.ImageDescriptor getDescriptor(String descriptorId)
Returns ImageDescriptor with given Id.

Parameters:
descriptorId - descriptor id
Returns:
ImageDescriptor with given Id

get

public org.eclipse.swt.graphics.Image get(String descriptorId)
Returns Image for given descriptor Id.

Parameters:
descriptorId - descriptor id
Returns:
Image for given descriptor Id

put

public void put(String descriptorId,
                String path)
Puts image from given file into registry.

Parameters:
descriptorId - image descriptor id
path - path to image file

putDescriptor

public void putDescriptor(String descriptorId,
                          org.eclipse.jface.resource.ImageDescriptor descriptor)
Puts ImageDescriptor into registry.

Parameters:
descriptorId - image descriptor id
descriptor - ImageDescriptor

getFriendlyName

@Deprecated
public String getFriendlyName(String imageId)
Deprecated. To be removed. Use NodeIconProvider.getFriendlyName() instead.

Gets a friendly display name for image with given Id.

Parameters:
imageId - image Id
Returns:
image friendly name


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