1 /*******************************************************************************
2 * Copyright (c) 2009, 2013 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 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Deprecate current time
12 *******************************************************************************/
14 package org
.eclipse
.linuxtools
.tmf
.core
.signal
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.timestamp
.ITmfTimestamp
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.timestamp
.TmfTimeRange
;
20 * A new time range has been selected.
22 * This is the visible (zoom) time range. To synchronize on the selection range,
23 * use {@link TmfTimeSynchSignal}.
26 * @author Francois Chouinard
28 public class TmfRangeSynchSignal
extends TmfSignal
{
30 private final TmfTimeRange fCurrentRange
;
36 * Object sending this signal
38 * The time range to which we synchronized
40 * The current selected timestamp, independent from the time
43 * @deprecated As of 2.1, use {@link #TmfRangeSynchSignal(Object, TmfTimeRange)}
46 public TmfRangeSynchSignal(Object source
, TmfTimeRange range
, ITmfTimestamp ts
) {
48 fCurrentRange
= range
;
55 * Object sending this signal
60 public TmfRangeSynchSignal(Object source
, TmfTimeRange range
) {
62 fCurrentRange
= range
;
66 * @return This signal's time range
69 public TmfTimeRange
getCurrentRange() {
74 * @return This signal's current selected timestamp
76 * @deprecated As of 2.1, this returns null
79 public ITmfTimestamp
getCurrentTime() {