Copyright header update, 2015 edition
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / ITimeGraphPresentationProvider2.java
CommitLineData
4999a196 1/*******************************************************************************
ed902a2b 2 * Copyright (c) 2013, 2014 École Polytechnique de Montréal
4999a196
GB
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
2bdf0193 13package org.eclipse.tracecompass.tmf.ui.widgets.timegraph;
4999a196 14
2bdf0193 15import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.ITmfTimeGraphDrawingHelper;
4999a196
GB
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 */
24public 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}
This page took 0.05209 seconds and 5 git commands to generate.