1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
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 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.ui
.widgets
.timegraph
.widgets
;
16 * This interface provides functions to convert a model element to a drawing
17 * element and vice versa.
19 * Views who implement this interface allow access to some model-to-canvas and
20 * vice-versa functions without having to expose their full functionnalities.
24 public interface ITmfTimeGraphDrawingHelper
{
27 * Return the x coordinate corresponding to a time
31 * @return the x coordinate corresponding to the time
33 int getXForTime(long time
);
36 * Return the time corresponding to an x coordinate
40 * @return the time corresponding to the x coordinate
42 long getTimeAtX(int x
);