1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
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 * Alexis Cabana-Loriaux - Initial API and implementation
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.internal
.tmf
.ui
.viewers
.piecharts
;
17 * Interface used to take control of a {@link TmfPieChartViewer} as part of the
18 * State design pattern. Thus it is closely related with the TmfPieChartViewer
20 * @author Alexis Cabana-Loriaux
23 interface IPieChartViewerState
{
26 * To be called when the current selection has changed
29 * The context in which to apply the changes
31 void newSelection(final TmfPieChartViewer context
);
34 * To be called when the current selection changes to "empty"
37 * The context in which to apply the changes
39 void newEmptySelection(final TmfPieChartViewer context
);
42 * To be called when there are new global entries to show
45 * The context in which to apply the changes
47 void newGlobalEntries(final TmfPieChartViewer context
);