| 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 color resource. |
| 17 | * |
| 18 | * @version 1.0 |
| 19 | * @author sveyrier |
| 20 | */ |
| 21 | public interface IColor { |
| 22 | |
| 23 | /** |
| 24 | * Returns the contained color. Returned object must be an instance of org.eclipse.swt.graphics.Color if used with |
| 25 | * the org.eclipse.linuxtools.tmf.ui.views.uml2sd.NGC graphical context |
| 26 | * |
| 27 | * @return the color |
| 28 | */ |
| 29 | public Object getColor(); |
| 30 | |
| 31 | /** |
| 32 | * Disposes the color |
| 33 | */ |
| 34 | public void dispose(); |
| 35 | |
| 36 | } |