org.eclipse.jface.viewers
Interface IColorDecorator


public interface IColorDecorator

The IColorDecorator is an interface for objects that return a color to decorate either the foreground and background colors for displaying an an object. If an IColorDecorator decorates a foreground or background in an object that also has an IColorProvider the IColorDecorator will take precendence.

Since:
3.1
See Also:
IColorProvider

Method Summary
 Color decorateBackground(java.lang.Object element)
          Return the background Color for element or null if there is not one.
 Color decorateForeground(java.lang.Object element)
          Return the foreground Color for element or null if there is not one.
 

Method Detail

decorateForeground

Color decorateForeground(java.lang.Object element)
Return the foreground Color for element or null if there is not one.

Parameters:
element -
Returns:
Color or null

decorateBackground

Color decorateBackground(java.lang.Object element)
Return the background Color for element or null if there is not one.

Parameters:
element -
Returns:
Color or null