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 | |
4b121c48 | 21 | * @since 2.1 |
4999a196 GB |
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 | ||
496f76d3 GB |
43 | /** |
44 | * Adds a color settings listener, to be notified when the presentation | |
45 | * provider's state colors change. | |
46 | * | |
47 | * @param listener | |
48 | * The new listener for color settings changes | |
c4767854 | 49 | * @since 3.0 |
496f76d3 GB |
50 | */ |
51 | public void addColorListener(ITimeGraphColorListener listener); | |
52 | ||
53 | /** | |
54 | * Removes a color settings listener. | |
55 | * | |
56 | * @param listener | |
57 | * The color settings listener to remove | |
c4767854 | 58 | * @since 3.0 |
496f76d3 GB |
59 | */ |
60 | public void removeColorListener(ITimeGraphColorListener listener); | |
61 | ||
4999a196 | 62 | } |