lttng: Add time alignment work to scatter chart
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.ui / src / org / eclipse / tracecompass / internal / analysis / os / linux / ui / views / latency / LatencyScatterView.java
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
10 package org.eclipse.tracecompass.internal.analysis.os.linux.ui.views.latency;
11
12 import static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyString;
13
14 import org.eclipse.jdt.annotation.Nullable;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.tracecompass.common.core.NonNullUtils;
17 import org.eclipse.tracecompass.tmf.ui.viewers.xycharts.TmfXYChartViewer;
18 import org.eclipse.tracecompass.tmf.ui.views.TmfChartView;
19
20 /**
21 * Some stuff
22 *
23 * @author Matthew Khouzam
24 */
25 public class LatencyScatterView extends TmfChartView {
26 // Attributes
27 // ------------------------------------------------------------------------
28
29 /** The view's ID */
30 public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.scatter"; //$NON-NLS-1$
31
32 private @Nullable LatencyScatterGraphViewer fScatterViewer;
33
34 // ------------------------------------------------------------------------
35 // Constructor
36 // ------------------------------------------------------------------------
37
38 /**
39 * Constructor
40 */
41 public LatencyScatterView() {
42 super(ID);
43 }
44
45 // ------------------------------------------------------------------------
46 // ViewPart
47 // ------------------------------------------------------------------------
48
49 @Override
50 protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) {
51 fScatterViewer = new LatencyScatterGraphViewer(NonNullUtils.checkNotNull(parent), nullToEmptyString(Messages.LatencyScatterView_title), nullToEmptyString(Messages.LatencyScatterView_xAxis),
52 nullToEmptyString(Messages.LatencyScatterView_yAxis));
53 return fScatterViewer;
54 }
55
56 }
This page took 0.043389 seconds and 5 git commands to generate.