Commit | Line | Data |
---|---|---|
4999a196 GB |
1 | /******************************************************************************* |
2 | * Copyright (c) 2013 École Polytechnique de Montréal | |
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 | * Geneviève Bastien - Add drawing helper methods | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.ui.widgets.timegraph; | |
14 | ||
15 | import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets.ITmfTimeGraphDrawingHelper; | |
16 | ||
17 | /** | |
18 | * Extension of the ITimeGraphPresentationProvider interface to avoid API breakage | |
19 | * | |
20 | * @author Geneviève Bastien | |
21 | * @since 2.1 | |
22 | * TODO: Add me to ITimeGraphPresentationProvider before the 3.0 release | |
23 | */ | |
24 | public interface ITimeGraphPresentationProvider2 extends ITimeGraphPresentationProvider { | |
25 | ||
26 | /** | |
27 | * Returns the drawing helper for this presentation provider. | |
28 | * | |
29 | * @return The drawing helper | |
30 | */ | |
31 | ITmfTimeGraphDrawingHelper getDrawingHelper(); | |
32 | ||
33 | /** | |
34 | * Sets this presentation provider's drawing helper. | |
35 | * This helper be needed to know where to draw items, get its coordinates | |
36 | * given a time, etc. | |
37 | * | |
38 | * @param helper | |
39 | * The drawing helper | |
40 | */ | |
41 | void setDrawingHelper(ITmfTimeGraphDrawingHelper helper); | |
42 | ||
43 | } |