1 /*******************************************************************************
2 * Copyright (c) 2009 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 * William Bourque - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.histogram
;
14 import org
.eclipse
.swt
.widgets
.Composite
;
17 * <b><u>ChildrenHistogramCanvas</u></b>
19 * Extended implementation of the HistogramCanvas.
21 * This canvas goal is to display the "SelectionWindow" in details.
23 public class ChildrenHistogramCanvas
extends HistogramCanvas
{
25 protected HistogramView parentHistogramWindow
= null;
28 * ChildrenHistogramCanvas constructor.<p>
29 * Same as HistogramCanvas, but receive a parent HistogramView that we can call from here.
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
34 public ChildrenHistogramCanvas(HistogramView newParentWindow
, Composite parent
, int style
) {
37 parentHistogramWindow
= newParentWindow
;
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.
45 public void notifyParentUpdatedInformation() {
46 parentHistogramWindow
.updateSelectedWindowInformation();