| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2005, 2015 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.tracecompass.tmf.ui.views.uml2sd.drawings; |
| 14 | |
| 15 | /** |
| 16 | * Interface for handling a image resource. |
| 17 | * |
| 18 | * @version 1.0 |
| 19 | * @author sveyrier |
| 20 | * |
| 21 | */ |
| 22 | public interface IImage { |
| 23 | |
| 24 | /** |
| 25 | * Returns the contained image. Returned object must be an instance of org.eclipse.swt.graphics.Image if used with |
| 26 | * the org.eclipse.tracecompass.tmf.ui.views.uml2sd.NGC graphical context |
| 27 | * |
| 28 | * @return the color |
| 29 | */ |
| 30 | Object getImage(); |
| 31 | |
| 32 | /** |
| 33 | * Disposes the image |
| 34 | */ |
| 35 | void dispose(); |
| 36 | |
| 37 | } |