tmf: Rename packages to org.eclipse.tracecompass.*
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / TimeGraphTimeEvent.java
1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 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.tracecompass.tmf.ui.widgets.timegraph;
14
15 import java.util.EventObject;
16
17 /**
18 * Time selection event
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 selection begin time.
33 */
34 private final long fBeginTime;
35
36 /**
37 * The selection end time.
38 */
39 private final long fEndTime;
40
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
50 * @since 2.1
51 */
52 public TimeGraphTimeEvent(Object source, long beginTime, long endTime) {
53 super(source);
54 fBeginTime = beginTime;
55 fEndTime = endTime;
56 }
57
58 /**
59 * @return the selection begin time
60 * @since 2.1
61 */
62 public long getBeginTime() {
63 return fBeginTime;
64 }
65
66 /**
67 * @return the selection end time
68 * @since 2.1
69 */
70 public long getEndTime() {
71 return fEndTime;
72 }
73
74 }
This page took 0.055212 seconds and 5 git commands to generate.