Autopsy  4.20.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
IconsUtil.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.datamodel.utils;
20 
21 import org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE;
22 
26 public final class IconsUtil {
27  private IconsUtil() {
28 
29  }
30 
31  @SuppressWarnings("deprecation")
32  public static String getIconFilePath(int typeID) {
33  String imageFile;
34  if (typeID == ARTIFACT_TYPE.TSK_WEB_BOOKMARK.getTypeID()) {
35  imageFile = "bookmarks.png"; //NON-NLS
36  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_COOKIE.getTypeID()) {
37  imageFile = "cookies.png"; //NON-NLS
38  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_HISTORY.getTypeID()) {
39  imageFile = "history.png"; //NON-NLS
40  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_DOWNLOAD.getTypeID()) {
41  imageFile = "downloads.png"; //NON-NLS
42  } else if (typeID == ARTIFACT_TYPE.TSK_RECENT_OBJECT.getTypeID()) {
43  imageFile = "recent_docs.png"; //NON-NLS
44  } else if (typeID == ARTIFACT_TYPE.TSK_GPS_TRACKPOINT.getTypeID()) {
45  imageFile = "gps_trackpoint.png"; //NON-NLS
46  } else if (typeID == ARTIFACT_TYPE.TSK_INSTALLED_PROG.getTypeID()) {
47  imageFile = "programs.png"; //NON-NLS
48  } else if (typeID == ARTIFACT_TYPE.TSK_DEVICE_ATTACHED.getTypeID()) {
49  imageFile = "usb_devices.png"; //NON-NLS
50  } else if (typeID == ARTIFACT_TYPE.TSK_EMAIL_MSG.getTypeID()) {
51  imageFile = "mail-icon-16.png"; //NON-NLS
52  } else if (typeID == ARTIFACT_TYPE.TSK_EXTRACTED_TEXT.getTypeID()) {
53  imageFile = "text-file.png"; //NON-NLS
54  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_SEARCH_QUERY.getTypeID()) {
55  imageFile = "searchquery.png"; //NON-NLS
56  } else if (typeID == ARTIFACT_TYPE.TSK_METADATA_EXIF.getTypeID()) {
57  imageFile = "camera-icon-16.png"; //NON-NLS
58  } else if (typeID == ARTIFACT_TYPE.TSK_OS_INFO.getTypeID()) {
59  imageFile = "computer.png"; //NON-NLS
60  } else if (typeID == ARTIFACT_TYPE.TSK_SERVICE_ACCOUNT.getTypeID()) {
61  imageFile = "account-icon-16.png"; //NON-NLS
62  } else if (typeID == ARTIFACT_TYPE.TSK_CONTACT.getTypeID()) {
63  imageFile = "contact.png"; //NON-NLS
64  } else if (typeID == ARTIFACT_TYPE.TSK_MESSAGE.getTypeID()) {
65  imageFile = "message.png"; //NON-NLS
66  } else if (typeID == ARTIFACT_TYPE.TSK_CALLLOG.getTypeID()) {
67  imageFile = "calllog.png"; //NON-NLS
68  } else if (typeID == ARTIFACT_TYPE.TSK_CALENDAR_ENTRY.getTypeID()) {
69  imageFile = "calendar.png"; //NON-NLS
70  } else if (typeID == ARTIFACT_TYPE.TSK_SPEED_DIAL_ENTRY.getTypeID()) {
71  imageFile = "speeddialentry.png"; //NON-NLS
72  } else if (typeID == ARTIFACT_TYPE.TSK_BLUETOOTH_PAIRING.getTypeID()) {
73  imageFile = "Bluetooth.png"; //NON-NLS
74  } else if (typeID == ARTIFACT_TYPE.TSK_GPS_BOOKMARK.getTypeID()) {
75  imageFile = "gpsfav.png"; //NON-NLS
76  } else if (typeID == ARTIFACT_TYPE.TSK_GPS_LAST_KNOWN_LOCATION.getTypeID()) {
77  imageFile = "gps-lastlocation.png"; //NON-NLS
78  } else if (typeID == ARTIFACT_TYPE.TSK_GPS_SEARCH.getTypeID()) {
79  imageFile = "gps-search.png"; //NON-NLS
80  } else if (typeID == ARTIFACT_TYPE.TSK_PROG_RUN.getTypeID()) {
81  imageFile = "installed.png"; //NON-NLS
82  } else if (typeID == ARTIFACT_TYPE.TSK_ENCRYPTION_DETECTED.getTypeID()
83  || typeID == ARTIFACT_TYPE.TSK_ENCRYPTION_SUSPECTED.getTypeID()) {
84  imageFile = "encrypted-file.png"; //NON-NLS
85  } else if (typeID == ARTIFACT_TYPE.TSK_EXT_MISMATCH_DETECTED.getTypeID()) {
86  imageFile = "mismatch-16.png"; //NON-NLS
87  } else if (typeID == ARTIFACT_TYPE.TSK_GPS_ROUTE.getTypeID()
88  || typeID == ARTIFACT_TYPE.TSK_GPS_TRACK.getTypeID()) {
89  imageFile = "gps_trackpoint.png"; //NON-NLS
90  } else if (typeID == ARTIFACT_TYPE.TSK_REMOTE_DRIVE.getTypeID()) {
91  imageFile = "drive_network.png"; //NON-NLS
92  } else if (typeID == ARTIFACT_TYPE.TSK_OS_ACCOUNT.getTypeID()) {
93  imageFile = "os-account.png"; //NON-NLS
94  } else if (typeID == ARTIFACT_TYPE.TSK_OBJECT_DETECTED.getTypeID()) {
95  imageFile = "objects.png"; //NON-NLS
96  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_FORM_AUTOFILL.getTypeID()) {
97  imageFile = "web-form.png"; //NON-NLS
98  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_CACHE.getTypeID()) {
99  imageFile = "cache.png"; //NON-NLS
100  } else if (typeID == ARTIFACT_TYPE.TSK_USER_CONTENT_SUSPECTED.getTypeID()) {
101  imageFile = "user-content.png"; //NON-NLS
102  } else if (typeID == ARTIFACT_TYPE.TSK_METADATA.getTypeID()) {
103  imageFile = "metadata.png"; //NON-NLS
104  } else if (typeID == ARTIFACT_TYPE.TSK_CLIPBOARD_CONTENT.getTypeID()) {
105  imageFile = "clipboard.png"; //NON-NLS
106  } else if (typeID == ARTIFACT_TYPE.TSK_FACE_DETECTED.getTypeID()) {
107  imageFile = "face.png"; //NON-NLS
108  } else if (typeID == ARTIFACT_TYPE.TSK_WIFI_NETWORK.getTypeID()) {
109  imageFile = "network-wifi.png"; //NON-NLS
110  } else if (typeID == ARTIFACT_TYPE.TSK_WIFI_NETWORK_ADAPTER.getTypeID()) {
111  imageFile = "network-wifi.png"; //NON-NLS
112  } else if (typeID == ARTIFACT_TYPE.TSK_SIM_ATTACHED.getTypeID()) {
113  imageFile = "sim_card.png"; //NON-NLS
114  } else if (typeID == ARTIFACT_TYPE.TSK_BLUETOOTH_ADAPTER.getTypeID()) {
115  imageFile = "Bluetooth.png"; //NON-NLS
116  } else if (typeID == ARTIFACT_TYPE.TSK_DEVICE_INFO.getTypeID()) {
117  imageFile = "devices.png"; //NON-NLS
118  } else if (typeID == ARTIFACT_TYPE.TSK_VERIFICATION_FAILED.getTypeID()) {
119  imageFile = "validationFailed.png"; //NON-NLS
120  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_ACCOUNT_TYPE.getTypeID()) {
121  imageFile = "web-account-type.png"; //NON-NLS
122  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_FORM_ADDRESS.getTypeID()) {
123  imageFile = "web-form-address.png"; //NON-NLS
124  } else if (typeID == ARTIFACT_TYPE.TSK_WEB_CATEGORIZATION.getTypeID()) {
125  imageFile = "domain-16.png"; //NON-NLS
126  } else if (typeID == ARTIFACT_TYPE.TSK_GPS_AREA.getTypeID()) {
127  imageFile = "gps-area.png"; //NON-NLS
128  } else if (typeID == ARTIFACT_TYPE.TSK_YARA_HIT.getTypeID()) {
129  imageFile = "yara_16.png"; //NON-NLS
130  } else if (typeID == ARTIFACT_TYPE.TSK_PREVIOUSLY_SEEN.getTypeID()) {
131  imageFile = "previously-seen.png"; //NON-NLS
132  } else if (typeID == ARTIFACT_TYPE.TSK_PREVIOUSLY_UNSEEN.getTypeID()) {
133  imageFile = "previously-unseen.png"; //NON-NLS
134  } else if (typeID == ARTIFACT_TYPE.TSK_PREVIOUSLY_NOTABLE.getTypeID()) {
135  imageFile = "red-circle-exclamation.png"; //NON-NLS
136  } else {
137  imageFile = "artifact-icon.png"; //NON-NLS
138  }
139  return "/org/sleuthkit/autopsy/images/" + imageFile;
140  }
141 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Aug 1 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.