Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.jface.text.source
Interface ISharedTextColors

public interface ISharedTextColors

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

This interface may be implemented by clients.

Since:
  2.1

Method Summary
`void` | `dispose()` Tells this object to dispose all its managed colors.
`Color` | `getColor(RGB rgb)` Returns the color object for the value represented by the given `RGB` object.

Method Detail

### getColor

    public Color getColor(RGB rgb)

  Returns the color object for the value represented by the given `RGB` object.

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

### dispose

    public void dispose()

  Tells this object to dispose all its managed colors.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.