01: /*******************************************************************************
02: * Copyright (c) 2004, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.viewers;
11:
12: import org.eclipse.swt.graphics.Font;
13:
14: /**
15: * The IFontDecorator is an interface for objects that return a font to
16: * decorate an object.
17: *
18: * If an IFontDecorator decorates a font in an object that also has
19: * an IFontProvider the IFontDecorator will take precedence.
20: * @see IFontProvider
21: *
22: * @since 3.1
23: */
24: public interface IFontDecorator {
25:
26: /**
27: * Return the font for element or <code>null</code> if there
28: * is not one.
29: *
30: * @param element
31: * @return Font or <code>null</code>
32: */
33: public Font decorateFont(Object element);
34:
35: }
|