Commit | Line | Data |
---|---|---|
cdf994ef ACL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2015 Ericsson | |
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 | * Alexis Cabana-Loriaux - Initial API and implementation | |
11 | * | |
12 | *******************************************************************************/ | |
13 | ||
14 | package org.eclipse.tracecompass.tmf.ui.viewers.piecharts; | |
15 | ||
16 | /** | |
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 | |
19 | * | |
20 | * @author Alexis Cabana-Loriaux | |
21 | * @since 2.0 | |
22 | */ | |
23 | interface IPieChartViewerState { | |
24 | ||
25 | /** | |
26 | * To be called when the current selection has changed | |
27 | * | |
28 | * @param context | |
29 | * The context in which to apply the changes | |
30 | */ | |
31 | void newSelection(final TmfPieChartViewer context); | |
32 | ||
33 | /** | |
34 | * To be called when the current selection changes to "empty" | |
35 | * | |
36 | * @param context | |
37 | * The context in which to apply the changes | |
38 | */ | |
39 | void newEmptySelection(final TmfPieChartViewer context); | |
40 | ||
41 | /** | |
42 | * To be called when there are new global entries to show | |
43 | * | |
44 | * @param context | |
45 | * The context in which to apply the changes | |
46 | */ | |
47 | void newGlobalEntries(final TmfPieChartViewer context); | |
48 | } |