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.trace.util; 17 18 import java.awt.Font; 19 20 /** 21 * Font color information tool 22 * 23 * @since 2021/04/22 12:25 24 */ 25 public final class Final { 26 /** 27 * is resource sql db file 28 */ 29 public static final boolean IS_RESOURCE_SQL = true; 30 31 /** 32 * Font name 33 */ 34 public static final String FONT_NAME = "宋体"; 35 36 /** 37 * Default font style 38 */ 39 public static final int PLAIN_STYLE = Font.PLAIN; 40 41 /** 42 * Minimum font size 43 */ 44 public static final int SMALL_FONT_SIZE = 10; 45 46 /** 47 * litter font size 48 */ 49 public static final int LITTER_FONT_SIZE = 8; 50 51 /** 52 * Normal font size 53 */ 54 public static final int NORMAL_FONT_SIZE = 11; 55 56 /** 57 * Runtime color constants 58 */ 59 public static final int RUNNING_COLOR = 0x467b3b; 60 61 /** 62 * R_COLOR 63 */ 64 public static final int R_COLOR = 0xa0b84d; 65 66 /** 67 * UNINTERRUPTIBLE_SLEEP_COLOR 68 */ 69 public static final int UNINTERRUPTIBLE_SLEEP_COLOR = 0xf19d38; 70 71 /** 72 * exit color 73 */ 74 public static final int EXIT_COLOR = 0x795649; 75 76 /** 77 * S_COLOR 78 */ 79 public static final int S_COLOR = 0xFBFBFB; 80 81 /** 82 * NORMAL_FONT 83 */ 84 public static final Font NORMAL_FONT = new Font(FONT_NAME, PLAIN_STYLE, NORMAL_FONT_SIZE); 85 86 /** 87 * NORMAL_FONT 88 */ 89 public static final Font SMALL_FONT = new Font(FONT_NAME, PLAIN_STYLE, SMALL_FONT_SIZE); 90 91 /** 92 * LITTER_FONT 93 */ 94 public static final Font LITTER_FONT = new Font(FONT_NAME, PLAIN_STYLE, LITTER_FONT_SIZE); 95 96 /** 97 * db capacity ,if row number big then capacity use async load db data 98 */ 99 public static final long CAPACITY = 5000L; 100 Final()101 private Final() { 102 } 103 } 104