10
|
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 dwtx.jface.viewers.IFontDecorator;
|
|
14
|
|
15 import dwt.graphics.Font;
|
|
16
|
|
17 /**
|
|
18 * The IFontDecorator is an interface for objects that return a font to
|
|
19 * decorate an object.
|
|
20 *
|
|
21 * If an IFontDecorator decorates a font in an object that also has
|
|
22 * an IFontProvider the IFontDecorator will take precedence.
|
|
23 * @see IFontProvider
|
|
24 *
|
|
25 * @since 3.1
|
|
26 */
|
|
27 public interface IFontDecorator {
|
|
28
|
|
29 /**
|
|
30 * Return the font for element or <code>null</code> if there
|
|
31 * is not one.
|
|
32 *
|
|
33 * @param element
|
|
34 * @return Font or <code>null</code>
|
|
35 */
|
|
36 public Font decorateFont(Object element);
|
|
37
|
|
38 }
|