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 | ||
13 | package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets; | |
14 | ||
15 | /** | |
16 | * Time data provider that converts between time data units used internally and | |
17 | * time in display units used by the caller. | |
18 | * | |
a465519a | 19 | * @since 3.2 |
0fab12b0 PT |
20 | */ |
21 | public interface ITimeDataProviderConverter extends ITimeDataProvider { | |
22 | ||
23 | /** | |
24 | * Convert a time in time data provider units to a time in display units. | |
25 | * | |
26 | * @param time the time in time data provider units | |
27 | * | |
28 | * @return the time in display units | |
29 | */ | |
30 | long convertTime(long time); | |
31 | } |