1 /*******************************************************************************
2 * Copyright (c) 2013 É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 - Add drawing helper methods
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
;
15 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
.ITmfTimeGraphDrawingHelper
;
18 * Extension of the ITimeGraphPresentationProvider interface to avoid API breakage
20 * @author Geneviève Bastien
22 * TODO: Add me to ITimeGraphPresentationProvider before the 3.0 release
24 public interface ITimeGraphPresentationProvider2
extends ITimeGraphPresentationProvider
{
27 * Returns the drawing helper for this presentation provider.
29 * @return The drawing helper
31 ITmfTimeGraphDrawingHelper
getDrawingHelper();
34 * Sets this presentation provider's drawing helper.
35 * This helper be needed to know where to draw items, get its coordinates
41 void setDrawingHelper(ITmfTimeGraphDrawingHelper helper
);
44 * Adds a color settings listener, to be notified when the presentation
45 * provider's state colors change.
48 * The new listener for color settings changes
51 public void addColorListener(ITimeGraphColorListener listener
);
54 * Removes a color settings listener.
57 * The color settings listener to remove
60 public void removeColorListener(ITimeGraphColorListener listener
);