KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > viewers > IFontDecorator


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  *******************************************************************************/

11 package org.eclipse.jface.viewers;
12
13 import org.eclipse.swt.graphics.Font;
14
15 /**
16  * The IFontDecorator is an interface for objects that return a font to
17  * decorate an object.
18  *
19  * If an IFontDecorator decorates a font in an object that also has
20  * an IFontProvider the IFontDecorator will take precedence.
21  * @see IFontProvider
22  *
23  * @since 3.1
24  */

25 public interface IFontDecorator {
26     
27     /**
28      * Return the font for element or <code>null</code> if there
29      * is not one.
30      *
31      * @param element
32      * @return Font or <code>null</code>
33      */

34     public Font decorateFont(Object JavaDoc element);
35
36 }
37
Popular Tags