Java Doc and API clean up of TMF UML Sequence diagram framework
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / core / LifelineCategories.java
CommitLineData
73005152 1/**********************************************************************
df0b8ff4
BH
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
3 * Copyright (c) 2011, 2012 Ericsson.
4 *
73005152
BH
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
73005152
BH
9 *
10 * Contributors:
11 * IBM - Initial API and implementation
12 * Bernd Hufmann - Updated for TMF
13 **********************************************************************/
14package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core;
15
16import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IImage;
17
18/**
df0b8ff4 19 * <p>
73005152
BH
20 * LifelineCategories is used to assign additional description for
21 * lifelines of the same type. This consists in providing a type name and an icon.
22 * The icon will be displayed in the rectangle which contains the lifeline name.
23 * The category name is only display in the lifeline tooltip.
df0b8ff4
BH
24 * </p>
25 *
26 * @version 1.0
27 * @author sveyrier
73005152
BH
28 */
29public class LifelineCategories {
df0b8ff4
BH
30
31 // ------------------------------------------------------------------------
32 // Attributes
33 // ------------------------------------------------------------------------
34
35 /**
73005152
BH
36 * The category name
37 */
38 protected String name = null;
39 /**
40 * The category image
41 */
42 protected IImage categoryImage = null;
df0b8ff4
BH
43
44 // ------------------------------------------------------------------------
45 // Methods
46 // ------------------------------------------------------------------------
47
73005152 48 /**
df0b8ff4
BH
49 * Returns the category name.
50 *
73005152
BH
51 * @return the category name
52 */
53 public String getName() {
54 return name;
55 }
56
57 /**
df0b8ff4
BH
58 * Sets the category name.
59 *
73005152
BH
60 * @param string the name
61 */
62 public void setName(String string) {
63 name = string;
64 }
65
66 /**
df0b8ff4
BH
67 * Returns the category icon.
68 *
73005152
BH
69 * @return the category icon
70 */
df0b8ff4 71 public IImage getImage() {
73005152
BH
72 return categoryImage;
73 }
74
75 /**
df0b8ff4
BH
76 * Sets the category icon.
77 *
73005152
BH
78 * @param image the icon
79 */
df0b8ff4 80 public void setImage(IImage image) {
73005152
BH
81 categoryImage = image;
82 }
83}
This page took 0.031102 seconds and 5 git commands to generate.