10
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2004, 2006 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.IFontProvider;
|
|
14
|
|
15 import dwt.graphics.Font;
|
|
16
|
|
17 /**
|
|
18 * Interface to provide font representation for a given element.
|
|
19 * @see dwtx.jface.viewers.IFontDecorator
|
|
20 *
|
|
21 * @since 3.0
|
|
22 */
|
|
23 public interface IFontProvider {
|
|
24
|
|
25 /**
|
|
26 * Provides a font for the given element.
|
|
27 *
|
|
28 * @param element the element
|
|
29 * @return the font for the element, or <code>null</code>
|
|
30 * to use the default font
|
|
31 */
|
|
32 public Font getFont(Object element);
|
|
33 }
|