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