tmf: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / TimeGraphRangeUpdateEvent.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 * Notifier for the time graph that the time range has been updated.
19 *
20 * @author Patrick Tasse
21 */
22 public class TimeGraphRangeUpdateEvent extends EventObject {
23
24 /**
25 * Default serial version UID for this class.
26 */
27 private static final long serialVersionUID = 1L;
28
29 /**
30 * The start time.
31 */
32 private final long fStartTime;
33
34 /**
35 * The end time.
36 */
37 private final long fEndTime;
38
39 /**
40 * Standard constructor
41 *
42 * @param source
43 * The source of this event
44 * @param startTime
45 * The start time
46 * @param endTime
47 * The end time
48 */
49 public TimeGraphRangeUpdateEvent(Object source, long startTime, long endTime) {
50 super(source);
51 fStartTime = startTime;
52 fEndTime = endTime;
53 }
54
55 /**
56 * @return the start time
57 */
58 public long getStartTime() {
59 return fStartTime;
60 }
61
62 /**
63 * @return the end time
64 */
65 public long getEndTime() {
66 return fEndTime;
67 }
68
69 }
This page took 0.03791 seconds and 5 git commands to generate.