| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2005, 2012 IBM Corporation, Ericsson |
| 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 - Initial API and implementation |
| 10 | * Bernd Hufmann - Updated for TMF |
| 11 | **********************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings; |
| 14 | |
| 15 | /** |
| 16 | * Interface for handling a font resource. |
| 17 | * |
| 18 | * @version 1.0 |
| 19 | * @author sveyrier |
| 20 | */ |
| 21 | public interface IFont { |
| 22 | |
| 23 | /** |
| 24 | * Returns the contained font. Returned object must be an instance of org.eclipse.swt.graphics.Font if used with the |
| 25 | * org.eclipse.linuxtools.tmf.ui.views.uml2sd.NGC graphical context |
| 26 | * |
| 27 | * @return the font |
| 28 | */ |
| 29 | public Object getFont(); |
| 30 | |
| 31 | /** |
| 32 | * Disposes the font |
| 33 | */ |
| 34 | public void dispose(); |
| 35 | |
| 36 | } |