tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / core / LifelineCategories.java
CommitLineData
73005152 1/**********************************************************************
c8422608 2 * Copyright (c) 2005, 2012 IBM Corporation, Ericsson
73005152
BH
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
c8422608
AM
7 *
8 * Contributors:
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
73005152
BH
11 **********************************************************************/
12package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core;
13
14import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.IImage;
15
16/**
df0b8ff4 17 * <p>
c8422608 18 * LifelineCategories is used to assign additional description for
73005152
BH
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.
df0b8ff4 22 * </p>
c8422608
AM
23 *
24 * @version 1.0
df0b8ff4 25 * @author sveyrier
73005152
BH
26 */
27public class LifelineCategories {
df0b8ff4
BH
28
29 // ------------------------------------------------------------------------
30 // Attributes
31 // ------------------------------------------------------------------------
32
33 /**
73005152
BH
34 * The category name
35 */
eb63f5ff 36 protected String fName = null;
73005152
BH
37 /**
38 * The category image
39 */
eb63f5ff 40 protected IImage fCategoryImage = null;
df0b8ff4
BH
41
42 // ------------------------------------------------------------------------
43 // Methods
44 // ------------------------------------------------------------------------
45
73005152 46 /**
df0b8ff4 47 * Returns the category name.
c8422608 48 *
73005152
BH
49 * @return the category name
50 */
51 public String getName() {
eb63f5ff 52 return fName;
73005152
BH
53 }
54
55 /**
df0b8ff4 56 * Sets the category name.
c8422608 57 *
73005152
BH
58 * @param string the name
59 */
60 public void setName(String string) {
eb63f5ff 61 fName = string;
73005152 62 }
c8422608 63
73005152 64 /**
df0b8ff4 65 * Returns the category icon.
c8422608 66 *
73005152
BH
67 * @return the category icon
68 */
df0b8ff4 69 public IImage getImage() {
eb63f5ff 70 return fCategoryImage;
73005152 71 }
c8422608 72
73005152 73 /**
df0b8ff4 74 * Sets the category icon.
c8422608 75 *
73005152
BH
76 * @param image the icon
77 */
df0b8ff4 78 public void setImage(IImage image) {
eb63f5ff 79 fCategoryImage = image;
73005152
BH
80 }
81}
This page took 0.036366 seconds and 5 git commands to generate.