org.eclipse.cdt.internal.ui.text
Interface IColorManager

All Known Implementing Classes:
CColorManager

public interface IColorManager

Manages SWT color objects for given color keys and given RGB objects. Until the dispose method is called, the same color object is returned for equal keys and equal RGB values.

This interface may be implemented by clients.

See Also:
ICColorConstants

Method Summary
 void dispose()
          Disposes all color objects remembered by this color manager.
 org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
          Returns the color object for the value represented by the given RGB object.
 org.eclipse.swt.graphics.Color getColor(java.lang.String key)
          Returns a color object for the given key.
 

Method Detail

getColor

org.eclipse.swt.graphics.Color getColor(java.lang.String key)
Returns a color object for the given key. The color objects are remembered internally; the same color object is returned for equal keys.

Parameters:
key - the color key
Returns:
the color object for the given key

getColor

org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.RGB rgb)
Returns the color object for the value represented by the given RGB object.

Parameters:
rgb - the rgb color specification
Returns:
the color object for the given rgb value

dispose

void dispose()
Disposes all color objects remembered by this color manager.