Commit | Line | Data |
---|---|---|
73005152 BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2005, 2006, 2011 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 | * $Id: LifelineCategories.java,v 1.2 2006/09/20 20:56:25 ewchan Exp $ | |
8 | * | |
9 | * Contributors: | |
10 | * IBM - Initial API and implementation | |
11 | * Bernd Hufmann - Updated for TMF | |
12 | **********************************************************************/ | |
13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IImage; | |
16 | ||
17 | /** | |
18 | * LifelineCategories is used to assign additional description for | |
19 | * lifelines of the same type. This consists in providing a type name and an icon. | |
20 | * The icon will be displayed in the rectangle which contains the lifeline name. | |
21 | * The category name is only display in the lifeline tooltip. | |
22 | */ | |
23 | public class LifelineCategories { | |
24 | ||
25 | /** | |
26 | * The category name | |
27 | */ | |
28 | protected String name = null; | |
29 | /** | |
30 | * The category image | |
31 | */ | |
32 | protected IImage categoryImage = null; | |
33 | ||
34 | /** | |
35 | * Returns the category name | |
36 | * @return the category name | |
37 | */ | |
38 | public String getName() { | |
39 | return name; | |
40 | } | |
41 | ||
42 | /** | |
43 | * Set the category name | |
44 | * @param string the name | |
45 | */ | |
46 | public void setName(String string) { | |
47 | name = string; | |
48 | } | |
49 | ||
50 | /** | |
51 | * Returns the category icon | |
52 | * @return the category icon | |
53 | */ | |
54 | public IImage getImage() | |
55 | { | |
56 | return categoryImage; | |
57 | } | |
58 | ||
59 | /** | |
60 | * Set the category icon | |
61 | * @param image the icon | |
62 | */ | |
63 | public void setImage(IImage image) | |
64 | { | |
65 | categoryImage = image; | |
66 | } | |
67 | } |