1 /*******************************************************************************
2 * Copyright (c) 2015, 2016 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
8 ********************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.ui
.views
.latency
;
12 import static org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
.nullToEmptyString
;
14 import org
.eclipse
.jdt
.annotation
.Nullable
;
15 import org
.eclipse
.swt
.widgets
.Composite
;
16 import org
.eclipse
.tracecompass
.analysis
.timing
.ui
.views
.segmentstore
.scatter
.AbstractSegmentStoreScatterGraphViewer
;
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
;
21 import com
.google
.common
.annotations
.VisibleForTesting
;
26 * @author Matthew Khouzam
28 public class SystemCallLatencyScatterView
extends TmfChartView
{
30 // ------------------------------------------------------------------------
33 public static final String ID
= "org.eclipse.tracecompass.analysis.os.linux.views.latency.scatter"; //$NON-NLS-1$
35 private @Nullable AbstractSegmentStoreScatterGraphViewer fScatterViewer
;
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
44 public SystemCallLatencyScatterView() {
48 // ------------------------------------------------------------------------
50 // ------------------------------------------------------------------------
53 protected TmfXYChartViewer
createChartViewer(@Nullable Composite parent
) {
54 fScatterViewer
= new SystemCallLatencyScatterGraphViewer(NonNullUtils
.checkNotNull(parent
), nullToEmptyString(Messages
.SystemCallLatencyScatterView_title
), nullToEmptyString(Messages
.SystemCallLatencyScatterView_xAxis
),
55 nullToEmptyString(Messages
.SystemCallLatencyScatterView_yAxis
));
56 return fScatterViewer
;
61 public TmfXYChartViewer
getChartViewer() {
62 return super.getChartViewer();