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.utils; 17 18 /** 19 * ChartViewConstants 20 * 21 * @since 2021/5/19 16:39 22 */ 23 public final class ChartViewConstants { 24 /** 25 * 时间线默认宽度 26 */ 27 public static final int TIMELINE_WIDTH = 1000; 28 29 /** 30 * 时间线默认高度 31 */ 32 public static final int TIMELINE_HEIGHT = 30; 33 34 /** 35 * Chart界面刷新频率,单位为毫秒 36 */ 37 public static final int REFRESH_FREQ = 20; 38 39 /** 40 * 时间线字体大小 41 */ 42 public static final int TIMELINE_FONT_SIZE = 11; 43 44 /** 45 * 每隔N个minMarkInterval绘制坐标轴数字和大刻度 46 */ 47 public static final int TIMELINE_MARK_COUNTS = 5; 48 49 /** 50 * 数字 51 */ 52 public static final int NUM_1024 = 1024; 53 54 /** 55 * Chart延迟启动的时长,单位为毫秒 56 */ 57 public static final int CHART_START_DELAY = 500; 58 59 /** 60 * Chart loading图的大小 61 */ 62 public static final int LOADING_SIZE = 100; 63 64 /** 65 * 构造函数 66 */ ChartViewConstants()67 private ChartViewConstants() { 68 } 69 } 70