ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / signal / TmfRangeSynchSignal.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 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 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Deprecate current time
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.tmf.core.signal;
15
16 import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimeRange;
17
18 /**
19 * A new time range has been selected.
20 *
21 * This is the visible (zoom) time range. To synchronize on the selection range,
22 * use {@link TmfTimeSynchSignal}.
23 *
24 * @version 1.0
25 * @author Francois Chouinard
26 */
27 public class TmfRangeSynchSignal extends TmfSignal {
28
29 private final TmfTimeRange fCurrentRange;
30
31 /**
32 * Constructor
33 *
34 * @param source
35 * Object sending this signal
36 * @param range
37 * The new time range
38 * @since 2.1
39 */
40 public TmfRangeSynchSignal(Object source, TmfTimeRange range) {
41 super(source);
42 fCurrentRange = range;
43 }
44
45 /**
46 * @return This signal's time range
47 * @since 2.0
48 */
49 public TmfTimeRange getCurrentRange() {
50 return fCurrentRange;
51 }
52
53 }
This page took 0.031009 seconds and 5 git commands to generate.