comparison org.eclipse.jface/src/org/eclipse/jface/viewers/IColorDecorator.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
1 /*******************************************************************************
2 * Copyright (c) 2004, 2007 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.jface.viewers.IColorDecorator;
14
15 import java.lang.all;
16
17 import org.eclipse.swt.graphics.Color;
18
19 /**
20 * The IColorDecorator is an interface for objects that return a color to
21 * decorate either the foreground and background colors for displaying an
22 * an object.
23 *
24 * If an IColorDecorator decorates a foreground or background in an object
25 * that also has an IColorProvider the IColorDecorator will take precedence.
26 * @see IColorProvider
27 *
28 * @since 3.1
29 */
30 public interface IColorDecorator {
31
32 /**
33 * Return the foreground Color for element or <code>null</code> if there
34 * is not one.
35 * @param element
36 * @return Color or <code>null</code>
37 */
38 public Color decorateForeground(Object element);
39
40 /**
41 * Return the background Color for element or <code>null</code> if there
42 * is not one.
43 * @param element
44 * @return Color or <code>null</code>
45 */
46 public Color decorateBackground(Object element);
47
48 }