(no commit message)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / histogram / ChildrenHistogramCanvas.java
1 /*******************************************************************************
2 * Copyright (c) 2009 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 * William Bourque - Initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.linuxtools.lttng.ui.views.histogram;
13
14 import org.eclipse.swt.widgets.Composite;
15
16 /**
17 * <b><u>ChildrenHistogramCanvas</u></b>
18 * <p>
19 * Extended implementation of the HistogramCanvas.
20 * <p>
21 * This canvas goal is to display the "SelectionWindow" in details.
22 */
23 public class ChildrenHistogramCanvas extends HistogramCanvas {
24
25 protected HistogramView parentHistogramWindow = null;
26
27 /**
28 * ChildrenHistogramCanvas constructor.<p>
29 * Same as HistogramCanvas, but receive a parent HistogramView that we can call from here.
30 *
31 * @param parent Composite control which will be the parent of the new instance (cannot be null)
32 * @param Style the style of control to construct
33 */
34 public ChildrenHistogramCanvas(HistogramView newParentWindow, Composite parent, int style) {
35 super(parent, style);
36
37 parentHistogramWindow = newParentWindow;
38 }
39
40 /**
41 * Notify the parent HistogramView that we have updated information.<p>
42 * This is intended to be called at the end of the request when we know we have up-to-date information.
43 */
44 @Override
45 public void notifyParentUpdatedInformation() {
46 parentHistogramWindow.updateSelectedWindowInformation();
47 }
48 }
This page took 0.030707 seconds and 5 git commands to generate.