1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
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
10 * Alvaro Sanchez-Leon - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
;
15 import java
.util
.EventObject
;
17 public class TmfTimeScaleSelectionEvent
extends EventObject
{
22 private static final long serialVersionUID
= -4177428788761351379L;
27 long selectedTime
= 0;
35 * time0 the start time
38 * pixels used to draw the width of the time space
40 * carries the selected time if available otherwise is 0
42 public TmfTimeScaleSelectionEvent(Object arg0
, long time0
, long time1
,
43 int width
, long selTime
) {
48 this.selectedTime
= selTime
;
52 * @return the start time
54 public long getTime0() {
59 * @return the end time
61 public long getTime1() {
66 * @return the selection width
68 public int getWidth() {
73 * @return the selected time
75 public long getSelectedTime() {