tmf: Make TimeGraphEntry implementation less restrictive
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / TimeGraphTimeEvent.java
CommitLineData
be222f56 1/*******************************************************************************
576f0a4e 2 * Copyright (c) 2012, 2014 Ericsson
be222f56
PT
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
13package org.eclipse.linuxtools.tmf.ui.widgets.timegraph;
14
15import java.util.EventObject;
16
17/**
0fcf3b09 18 * Time selection event
be222f56
PT
19 *
20 * @version 1.0
21 * @author Patrick Tasse
22 */
23public 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 /**
0fcf3b09 32 * The selection begin time.
be222f56 33 */
0fcf3b09
PT
34 private final long fBeginTime;
35
36 /**
37 * The selection end time.
38 */
39 private final long fEndTime;
be222f56 40
0fcf3b09
PT
41 /**
42 * Standard constructor
43 *
44 * @param source
45 * The source of this event
46 * @param beginTime
47 * The selection begin time
48 * @param endTime
49 * The selection end time
4b121c48 50 * @since 2.1
0fcf3b09
PT
51 */
52 public TimeGraphTimeEvent(Object source, long beginTime, long endTime) {
53 super(source);
54 fBeginTime = beginTime;
55 fEndTime = endTime;
be222f56
PT
56 }
57
0fcf3b09
PT
58 /**
59 * @return the selection begin time
4b121c48 60 * @since 2.1
0fcf3b09
PT
61 */
62 public long getBeginTime() {
63 return fBeginTime;
64 }
65
66 /**
67 * @return the selection end time
4b121c48 68 * @since 2.1
0fcf3b09
PT
69 */
70 public long getEndTime() {
71 return fEndTime;
be222f56
PT
72 }
73
74}
This page took 0.041256 seconds and 5 git commands to generate.