Commit | Line | Data |
---|---|---|
a5c41909 | 1 | /******************************************************************************* |
edded5c1 | 2 | * Copyright (c) 2015, 2016 Ericsson |
a5c41909 MK |
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; |
edded5c1 | 16 | import org.eclipse.tracecompass.analysis.timing.ui.views.segmentstore.scatter.AbstractSegmentStoreScatterGraphViewer; |
d9789e33 MK |
17 | import org.eclipse.tracecompass.common.core.NonNullUtils; |
18 | import org.eclipse.tracecompass.tmf.ui.viewers.xycharts.TmfXYChartViewer; | |
19 | import org.eclipse.tracecompass.tmf.ui.views.TmfChartView; | |
a5c41909 | 20 | |
44af9da9 GB |
21 | import com.google.common.annotations.VisibleForTesting; |
22 | ||
a5c41909 MK |
23 | /** |
24 | * Some stuff | |
25 | * | |
26 | * @author Matthew Khouzam | |
27 | */ | |
aa65365a | 28 | public class SystemCallLatencyScatterView extends TmfChartView { |
a5c41909 MK |
29 | // Attributes |
30 | // ------------------------------------------------------------------------ | |
31 | ||
32 | /** The view's ID */ | |
33 | public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.scatter"; //$NON-NLS-1$ | |
34 | ||
03c96217 | 35 | private @Nullable AbstractSegmentStoreScatterGraphViewer fScatterViewer; |
a5c41909 MK |
36 | |
37 | // ------------------------------------------------------------------------ | |
38 | // Constructor | |
39 | // ------------------------------------------------------------------------ | |
40 | ||
41 | /** | |
42 | * Constructor | |
43 | */ | |
aa65365a | 44 | public SystemCallLatencyScatterView() { |
a5c41909 MK |
45 | super(ID); |
46 | } | |
47 | ||
48 | // ------------------------------------------------------------------------ | |
49 | // ViewPart | |
50 | // ------------------------------------------------------------------------ | |
51 | ||
52 | @Override | |
d9789e33 | 53 | protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) { |
aa65365a BH |
54 | fScatterViewer = new SystemCallLatencyScatterGraphViewer(NonNullUtils.checkNotNull(parent), nullToEmptyString(Messages.SystemCallLatencyScatterView_title), nullToEmptyString(Messages.SystemCallLatencyScatterView_xAxis), |
55 | nullToEmptyString(Messages.SystemCallLatencyScatterView_yAxis)); | |
d9789e33 | 56 | return fScatterViewer; |
a5c41909 MK |
57 | } |
58 | ||
44af9da9 GB |
59 | @VisibleForTesting |
60 | @Override | |
61 | public TmfXYChartViewer getChartViewer() { | |
62 | return super.getChartViewer(); | |
63 | } | |
64 | ||
a5c41909 | 65 | } |