Eclipse JDT
2.0

org.eclipse.jdt.ui.text
Interface IColorManager


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:
IJavaColorConstants

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

Method Detail

getColor

public Color getColor(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

public Color getColor(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

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


Eclipse JDT
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.