lttng: Update copyright headers
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / TimeGraphTimeEvent.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.widgets.timegraph;
14
15 import java.util.EventObject;
16
17 /**
18 * Event for the time graph view
19 *
20 * @version 1.0
21 * @author Patrick Tasse
22 */
23 public class TimeGraphTimeEvent extends EventObject {
24
25 /**
26 * Default serial version UID for this class.
27 * @since 1.0
28 */
29 private static final long serialVersionUID = 1L;
30
31 /**
32 * The selected time.
33 */
34 private final long fTime;
35
36 /**
37 * Standard constructor
38 *
39 * @param source
40 * The source of this event
41 * @param time
42 * The time that was requested
43 */
44 public TimeGraphTimeEvent(Object source, long time) {
45 super(source);
46 fTime = time;
47 }
48
49 /**
50 * @return the selected time
51 */
52 public long getTime() {
53 return fTime;
54 }
55
56 }
This page took 0.032105 seconds and 5 git commands to generate.