Package 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 precedence.
- Since:
- 3.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecorateBackground
(Object element) Return the background Color for element ornull
if there is not one.decorateForeground
(Object element) Return the foreground Color for element ornull
if there is not one.
-
Method Details
-
decorateForeground
Return the foreground Color for element ornull
if there is not one.- Parameters:
element
- the element to get foreground color for- Returns:
- Color or
null
-
decorateBackground
Return the background Color for element ornull
if there is not one.- Parameters:
element
- the element to get background color for- Returns:
- Color or
null
-