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 MK |
20 | |
21 | /** | |
22 | * Some stuff | |
23 | * | |
24 | * @author Matthew Khouzam | |
25 | */ | |
aa65365a | 26 | public class SystemCallLatencyScatterView extends TmfChartView { |
a5c41909 MK |
27 | // Attributes |
28 | // ------------------------------------------------------------------------ | |
29 | ||
30 | /** The view's ID */ | |
31 | public static final String ID = "org.eclipse.tracecompass.analysis.os.linux.views.latency.scatter"; //$NON-NLS-1$ | |
32 | ||
03c96217 | 33 | private @Nullable AbstractSegmentStoreScatterGraphViewer fScatterViewer; |
a5c41909 MK |
34 | |
35 | // ------------------------------------------------------------------------ | |
36 | // Constructor | |
37 | // ------------------------------------------------------------------------ | |
38 | ||
39 | /** | |
40 | * Constructor | |
41 | */ | |
aa65365a | 42 | public SystemCallLatencyScatterView() { |
a5c41909 MK |
43 | super(ID); |
44 | } | |
45 | ||
46 | // ------------------------------------------------------------------------ | |
47 | // ViewPart | |
48 | // ------------------------------------------------------------------------ | |
49 | ||
50 | @Override | |
d9789e33 | 51 | protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) { |
aa65365a BH |
52 | fScatterViewer = new SystemCallLatencyScatterGraphViewer(NonNullUtils.checkNotNull(parent), nullToEmptyString(Messages.SystemCallLatencyScatterView_title), nullToEmptyString(Messages.SystemCallLatencyScatterView_xAxis), |
53 | nullToEmptyString(Messages.SystemCallLatencyScatterView_yAxis)); | |
d9789e33 | 54 | return fScatterViewer; |
a5c41909 MK |
55 | } |
56 | ||
57 | } |