1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package ohos.devtools.views.layout.chartview; 17 18 import com.intellij.ui.components.JBPanel; 19 import ohos.devtools.views.charts.ProfilerChart; 20 21 /** 22 * Abstract parent class profiler monitor item view 23 * 24 * @since 2021/11/22 25 */ 26 public abstract class MonitorItemView extends JBPanel implements MonitorItemInterface { 27 /** 28 * bottomPanel 29 */ 30 protected ProfilerChartsView bottomPanel; 31 32 /** 33 * parent 34 */ 35 protected ItemsView parent; 36 37 /** 38 * chart 39 */ 40 protected ProfilerChart chart; 41 42 /** 43 * chart 44 */ 45 protected ProfilerChart expandShowChart; 46 47 /** 48 * fold 49 */ 50 protected boolean fold = true; 51 52 /** 53 * showTable 54 */ 55 protected boolean showTable = false; 56 getBottomPanel()57 public ProfilerChartsView getBottomPanel() { 58 return bottomPanel; 59 } 60 getChart()61 public ProfilerChart getChart() { 62 return chart; 63 } 64 isFold()65 public boolean isFold() { 66 return fold; 67 } 68 isShowTable()69 public boolean isShowTable() { 70 return showTable; 71 } 72 } 73