Fix for bug289620
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / viewers / timeAnalysis / TmfTimeTimeScaleSelectionEvent.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.tmf.ui.viewers.timeAnalysis;
14
15 import java.util.EventObject;
16
17 public class TmfTimeTimeScaleSelectionEvent 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 TmfTimeTimeScaleSelectionEvent(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 public long getTime0() {
52 return time0;
53 }
54
55 public long getTime1() {
56 return time1;
57 }
58
59 public int getWidth() {
60 return width;
61 }
62 }
This page took 0.031198 seconds and 5 git commands to generate.