tmf: Use tabs in statistics view for each traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / internal / lttng / ui / viewers / timeAnalysis / TmfTimeScaleSelectionEvent.java
1 /*******************************************************************************
2 * Copyright (c) 2009 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 * Alvaro Sanchez-Leon - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.internal.lttng.ui.viewers.timeAnalysis;
14
15 import java.util.EventObject;
16
17 public class TmfTimeScaleSelectionEvent extends EventObject {
18
19 /**
20 *
21 */
22 private static final long serialVersionUID = -4177428788761351379L;
23
24
25 long time0 = 0;
26 long time1 = 0;
27 long selectedTime = 0;
28 int width = 0;
29
30 /**
31 *
32 * @param arg0
33 * source of event
34 * @param time0
35 * time0 the start time
36 * @param time1
37 * @param width
38 * pixels used to draw the width of the time space
39 * @param selTime
40 * carries the selected time if available otherwise is 0
41 */
42 public TmfTimeScaleSelectionEvent(Object arg0, long time0, long time1,
43 int width, long selTime) {
44 super(arg0);
45 this.time0 = time0;
46 this.time1 = time1;
47 this.width = width;
48 this.selectedTime = selTime;
49 }
50
51 /**
52 * @return the start time
53 */
54 public long getTime0() {
55 return time0;
56 }
57
58 /**
59 * @return the end time
60 */
61 public long getTime1() {
62 return time1;
63 }
64
65 /**
66 * @return the selection width
67 */
68 public int getWidth() {
69 return width;
70 }
71
72 /**
73 * @return the selected time
74 */
75 public long getSelectedTime() {
76 return selectedTime;
77 }
78
79 }
This page took 0.032834 seconds and 5 git commands to generate.