Commit | Line | Data |
---|---|---|
0fab12b0 PT |
1 | /******************************************************************************* |
2 | * Copyright (c) 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 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets; |
0fab12b0 PT |
14 | |
15 | /** | |
16 | * Time data provider that converts between time data units used internally and | |
17 | * time in display units used by the caller. | |
0fab12b0 PT |
18 | */ |
19 | public interface ITimeDataProviderConverter extends ITimeDataProvider { | |
20 | ||
21 | /** | |
22 | * Convert a time in time data provider units to a time in display units. | |
23 | * | |
24 | * @param time the time in time data provider units | |
25 | * | |
26 | * @return the time in display units | |
27 | */ | |
28 | long convertTime(long time); | |
29 | } |