Commit | Line | Data |
---|---|---|
a5c41909 MK |
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; | |
d9789e33 | 11 | |
a5c41909 MK |
12 | import static org.eclipse.tracecompass.common.core.NonNullUtils.nullToEmptyString; |
13 | ||
14 | import org.eclipse.jdt.annotation.Nullable; | |
a5c41909 | 15 | import org.eclipse.swt.widgets.Composite; |
d9789e33 MK |
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; | |
a5c41909 MK |
19 | |
20 | /** | |
21 | * Some stuff | |
22 | * | |
23 | * @author Matthew Khouzam | |
24 | */ | |
d9789e33 | 25 | public class LatencyScatterView extends TmfChartView { |
a5c41909 MK |
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 | |
d9789e33 MK |
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; | |
a5c41909 MK |
54 | } |
55 | ||
56 | } |